@treasuredata/tdx 2026.7.2 → 2026.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.d.ts.map +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-command.js.map +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.d.ts +67 -0
- package/dist/commands/claude-command.d.ts.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-command.js.map +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.d.ts +11 -0
- package/dist/commands/describe.d.ts.map +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/describe.js.map +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.d.ts.map +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/job-command.js.map +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.d.ts.map +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-command.js.map +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.d.ts.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/commands/workflow-command.js.map +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.d.ts +11 -2
- package/dist/core/oauth.d.ts.map +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/oauth.js.map +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.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.d.ts +16 -0
- package/dist/proxy/passthrough-server.d.ts.map +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/passthrough-server.js.map +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/cas/cas-api-client.d.ts.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.js +1 -1
- package/dist/sdk/cas/cas-audience-validator.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/cas/validate-files.js +1 -1
- package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/cdp-api-client.js.map +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.d.ts +5 -1
- package/dist/sdk/client/oauth-refresh.d.ts.map +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/oauth-refresh.js.map +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/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.d.ts.map +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/llm/model-factors.js.map +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.d.ts +9 -1
- package/dist/sdk/query/index.d.ts.map +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/index.js.map +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.d.ts.map +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/journey-yaml.js.map +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js.map +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.d.ts.map +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/target-resolution.js.map +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.d.ts.map +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/parent-segment-def.d.ts.map +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/cdp.d.ts.map +1 -1
- package/dist/sdk/types/engage.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/llm.d.ts.map +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.d.ts.map +1 -1
- package/dist/sdk/types/workspace.js +1 -1
- package/dist/sdk/types/workspace.js.map +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.d.ts +33 -0
- package/dist/utils/claude-code-state.d.ts.map +1 -0
- package/dist/utils/claude-code-state.js +1 -0
- package/dist/utils/claude-code-state.js.map +1 -0
- 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.d.ts +29 -0
- package/dist/utils/proxy-fetch.d.ts.map +1 -0
- package/dist/utils/proxy-fetch.js +1 -0
- package/dist/utils/proxy-fetch.js.map +1 -0
- 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 +18 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x340223,_0x4a59ee){var _0x372bd7=a234_0x57fc,_0x57ccc1=_0x340223();while(!![]){try{var _0x365821=-parseInt(_0x372bd7(0x129))/0x1+parseInt(_0x372bd7(0x12a))/0x2+-parseInt(_0x372bd7(0x127))/0x3*(-parseInt(_0x372bd7(0x12c))/0x4)+-parseInt(_0x372bd7(0x12b))/0x5+parseInt(_0x372bd7(0x12d))/0x6+parseInt(_0x372bd7(0x126))/0x7+parseInt(_0x372bd7(0x128))/0x8;if(_0x365821===_0x4a59ee)break;else _0x57ccc1['push'](_0x57ccc1['shift']());}catch(_0xf3c065){_0x57ccc1['push'](_0x57ccc1['shift']());}}}(a234_0x868e,0x27ae6));function a234_0x868e(){var _0x53a26d=['234980NxATjA','1499380vgQzUZ','216dyDhbM','8478zVVbyj','737401QVoAhW','6957aGYbxd','3384280SMCJSf','310097LBauWx'];a234_0x868e=function(){return _0x53a26d;};return a234_0x868e();}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a234_0x57fc(_0x57d2c1,_0x296917){_0x57d2c1=_0x57d2c1-0x126;var _0x868e76=a234_0x868e();var _0x57fceb=_0x868e76[_0x57d2c1];return _0x57fceb;}export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a235_0x3dc9(){const _0x745f7d=['777014mPHlYz','initialized','setDefaultLevel','WARN','slice','message','addHandler','length','warn','TRACE','9VacnuD','clear','7908BgHAif','reset','has','name','123064BMORdW','formatter','loggers','INFO','map','log','handlers','12605060EjVgcJ','6117813iXnVps','split','level','join','stringify','init',']\x20[','defaultLevel','dispatch','DEBUG','clearHandlers','toISOString','push','close','error','ERROR','cause','pendingRecords','34AUHBFo','component','set','setLogLevel','shouldLog','format','shutdown','string','get','766492YTzqnx','2815iPEBjx','getEffectiveLevel','debug','timestamp','9741WTpiXc','levelOverrides','handle'];a235_0x3dc9=function(){return _0x745f7d;};return a235_0x3dc9();}const a235_0x36c9d1=a235_0x46c0;(function(_0x298d41,_0x136f66){const _0x3f2933=a235_0x46c0,_0x5e350c=_0x298d41();while(!![]){try{const _0xde7812=-parseInt(_0x3f2933(0x1f1))/0x1*(parseInt(_0x3f2933(0x1e3))/0x2)+-parseInt(_0x3f2933(0x1c3))/0x3*(-parseInt(_0x3f2933(0x1ec))/0x4)+-parseInt(_0x3f2933(0x1ed))/0x5*(parseInt(_0x3f2933(0x1c5))/0x6)+parseInt(_0x3f2933(0x1f4))/0x7+parseInt(_0x3f2933(0x1c9))/0x8+-parseInt(_0x3f2933(0x1d1))/0x9+parseInt(_0x3f2933(0x1d0))/0xa;if(_0xde7812===_0x136f66)break;else _0x5e350c['push'](_0x5e350c['shift']());}catch(_0x558419){_0x5e350c['push'](_0x5e350c['shift']());}}}(a235_0x3dc9,0x5b664));function a235_0x46c0(_0x26f7df,_0x10ae9f){_0x26f7df=_0x26f7df-0x1bb;const _0x3dc968=a235_0x3dc9();let _0x46c07d=_0x3dc968[_0x26f7df];return _0x46c07d;}import{LogLevel as a235_0x296124,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a235_0x296124[a235_0x36c9d1(0x1cc)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0xb41a4d){const _0x2ea9fb=a235_0x36c9d1;if(typeof _0xb41a4d===_0x2ea9fb(0x1ea))return _0xb41a4d;if(_0xb41a4d instanceof Error)return _0xb41a4d['stack']||_0xb41a4d[_0x2ea9fb(0x1c8)]+':\x20'+_0xb41a4d[_0x2ea9fb(0x1be)];try{return JSON[_0x2ea9fb(0x1d5)](_0xb41a4d,(_0x37f245,_0x58b18f)=>{const _0x361296=_0x2ea9fb;if(_0x58b18f instanceof Error)return{'name':_0x58b18f[_0x361296(0x1c8)],'message':_0x58b18f[_0x361296(0x1be)],'stack':_0x58b18f['stack'],'cause':_0x58b18f[_0x361296(0x1e1)]};return _0x58b18f;});}catch{return String(_0xb41a4d);}}export class Logger{[a235_0x36c9d1(0x1e4)];constructor(_0x530dfb){const _0x4254b9=a235_0x36c9d1;this[_0x4254b9(0x1e4)]=_0x530dfb;}static['of'](_0x1d10bd){const _0x14a088=a235_0x36c9d1,_0x34c2e6=typeof _0x1d10bd===_0x14a088(0x1ea)?_0x1d10bd:_0x1d10bd[_0x14a088(0x1c8)];let _0x3c05f0=state[_0x14a088(0x1cb)][_0x14a088(0x1eb)](_0x34c2e6);return!_0x3c05f0&&(_0x3c05f0=new Logger(_0x34c2e6),state['loggers'][_0x14a088(0x1e5)](_0x34c2e6,_0x3c05f0)),_0x3c05f0;}static async[a235_0x36c9d1(0x1d6)](_0x29256d={}){const _0x3ce0f7=a235_0x36c9d1;state[_0x3ce0f7(0x1d8)]=_0x29256d[_0x3ce0f7(0x1d8)]??a235_0x296124[_0x3ce0f7(0x1cc)],state[_0x3ce0f7(0x1cf)]=_0x29256d[_0x3ce0f7(0x1cf)]??[],state[_0x3ce0f7(0x1ca)]=_0x29256d['formatter']??null,state[_0x3ce0f7(0x1f2)][_0x3ce0f7(0x1c4)]();if(_0x29256d[_0x3ce0f7(0x1f2)])for(const [_0x493ea7,_0x6f10d2]of Object['entries'](_0x29256d[_0x3ce0f7(0x1f2)])){state[_0x3ce0f7(0x1f2)][_0x3ce0f7(0x1e5)](_0x493ea7,_0x6f10d2);}for(const _0x4d74f3 of state[_0x3ce0f7(0x1cf)]){_0x4d74f3[_0x3ce0f7(0x1d6)]&&await _0x4d74f3[_0x3ce0f7(0x1d6)]();}state['initialized']=!![];for(const _0x9a53fa of state[_0x3ce0f7(0x1e2)]){Logger['dispatch'](_0x9a53fa);}state[_0x3ce0f7(0x1e2)]=[];}static[a235_0x36c9d1(0x1e6)](_0x14e567,_0x1649e9){const _0x2fd9cc=a235_0x36c9d1;state['levelOverrides'][_0x2fd9cc(0x1e5)](_0x14e567,_0x1649e9);}static[a235_0x36c9d1(0x1bb)](_0x2a48ed){state['defaultLevel']=_0x2a48ed;}static[a235_0x36c9d1(0x1bf)](_0x249772){const _0x3d6d30=a235_0x36c9d1;state[_0x3d6d30(0x1cf)][_0x3d6d30(0x1dd)](_0x249772),state['initialized']&&_0x249772[_0x3d6d30(0x1d6)]&&_0x249772[_0x3d6d30(0x1d6)]();}static[a235_0x36c9d1(0x1db)](){const _0x243781=a235_0x36c9d1;state[_0x243781(0x1cf)]=[];}static async[a235_0x36c9d1(0x1e9)](){const _0x8abfbb=a235_0x36c9d1;for(const _0xdaeca3 of state['handlers']){_0xdaeca3[_0x8abfbb(0x1de)]&&await _0xdaeca3['close']();}state['handlers']=[],state[_0x8abfbb(0x1f5)]=![],state[_0x8abfbb(0x1cb)][_0x8abfbb(0x1c4)](),state[_0x8abfbb(0x1e2)]=[];}static[a235_0x36c9d1(0x1c6)](){const _0x590b59=a235_0x36c9d1;state[_0x590b59(0x1f5)]=![],state[_0x590b59(0x1d8)]=a235_0x296124[_0x590b59(0x1cc)],state['levelOverrides']['clear'](),state[_0x590b59(0x1cf)]=[],state['formatter']=null,state[_0x590b59(0x1cb)][_0x590b59(0x1c4)](),state['pendingRecords']=[];}static['isInitialized'](){const _0x1b6028=a235_0x36c9d1;return state[_0x1b6028(0x1f5)];}static['getEffectiveLevel'](_0x5dd177){const _0x51d776=a235_0x36c9d1;if(state[_0x51d776(0x1f2)][_0x51d776(0x1c7)](_0x5dd177))return state[_0x51d776(0x1f2)][_0x51d776(0x1eb)](_0x5dd177);const _0x305790=_0x5dd177[_0x51d776(0x1d2)]('.');for(let _0x2eb891=_0x305790['length']-0x1;_0x2eb891>0x0;_0x2eb891--){const _0x17e34d=_0x305790[_0x51d776(0x1bd)](0x0,_0x2eb891)[_0x51d776(0x1d4)]('.');if(state['levelOverrides'][_0x51d776(0x1c7)](_0x17e34d))return state[_0x51d776(0x1f2)][_0x51d776(0x1eb)](_0x17e34d);}return state['defaultLevel'];}['shouldLog'](_0x1c9a22){const _0x324344=a235_0x36c9d1,_0x4c279a=Logger[_0x324344(0x1ee)](this[_0x324344(0x1e4)]);return _0x1c9a22>=_0x4c279a;}static['dispatch'](_0x367a00){const _0x263287=a235_0x36c9d1;for(const _0xfecb97 of state['handlers']){_0xfecb97[_0x263287(0x1f3)](_0x367a00);}}[a235_0x36c9d1(0x1ce)](_0x389b48,_0xc78ec2){const _0x26f029=a235_0x36c9d1;if(!this[_0x26f029(0x1e7)](_0x389b48))return;const _0xd6a0c8=_0xc78ec2[_0x26f029(0x1cd)](_0x2199f8=>typeof _0x2199f8==='function'?_0x2199f8():_0x2199f8),_0x496fcc=_0xd6a0c8[_0x26f029(0x1cd)](safeStringify)[_0x26f029(0x1d4)]('\x20'),_0x2e387b={'timestamp':new Date(),'level':_0x389b48,'component':this[_0x26f029(0x1e4)],'message':_0x496fcc};if(!state[_0x26f029(0x1f5)]){state['pendingRecords'][_0x26f029(0x1c0)]<MAX_PENDING_RECORDS&&state[_0x26f029(0x1e2)][_0x26f029(0x1dd)](_0x2e387b);return;}Logger[_0x26f029(0x1d9)](_0x2e387b);}['trace'](..._0x2423c1){const _0x39af2f=a235_0x36c9d1;this[_0x39af2f(0x1ce)](a235_0x296124[_0x39af2f(0x1c2)],_0x2423c1);}[a235_0x36c9d1(0x1ef)](..._0x4460e3){const _0x416186=a235_0x36c9d1;this[_0x416186(0x1ce)](a235_0x296124[_0x416186(0x1da)],_0x4460e3);}['info'](..._0x244f15){const _0x59a52e=a235_0x36c9d1;this[_0x59a52e(0x1ce)](a235_0x296124[_0x59a52e(0x1cc)],_0x244f15);}[a235_0x36c9d1(0x1c1)](..._0x21cc24){const _0x537740=a235_0x36c9d1;this[_0x537740(0x1ce)](a235_0x296124[_0x537740(0x1bc)],_0x21cc24);}[a235_0x36c9d1(0x1df)](..._0x23b1b5){const _0x91340b=a235_0x36c9d1;this[_0x91340b(0x1ce)](a235_0x296124[_0x91340b(0x1e0)],_0x23b1b5);}static['getFormatter'](){return state['formatter'];}static[a235_0x36c9d1(0x1e8)](_0x219227){const _0x411f46=a235_0x36c9d1;if(state['formatter'])return state[_0x411f46(0x1ca)][_0x411f46(0x1e8)](_0x219227);return _0x219227[_0x411f46(0x1f0)][_0x411f46(0x1dc)]()+'\x20['+logLevelToString(_0x219227[_0x411f46(0x1d3)])+_0x411f46(0x1d7)+_0x219227[_0x411f46(0x1e4)]+']\x20'+_0x219227[_0x411f46(0x1be)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x554de9,_0x58b5ef){const _0x4cb82b=a236_0x1dfd,_0x27e7c3=_0x554de9();while(!![]){try{const _0xb74f49=-parseInt(_0x4cb82b(0xdc))/0x1+-parseInt(_0x4cb82b(0xc7))/0x2*(-parseInt(_0x4cb82b(0xdf))/0x3)+parseInt(_0x4cb82b(0xd4))/0x4*(parseInt(_0x4cb82b(0xe1))/0x5)+-parseInt(_0x4cb82b(0xd8))/0x6+-parseInt(_0x4cb82b(0xd1))/0x7*(-parseInt(_0x4cb82b(0xcf))/0x8)+-parseInt(_0x4cb82b(0xca))/0x9*(parseInt(_0x4cb82b(0xd2))/0xa)+parseInt(_0x4cb82b(0xd9))/0xb*(-parseInt(_0x4cb82b(0xc5))/0xc);if(_0xb74f49===_0x58b5ef)break;else _0x27e7c3['push'](_0x27e7c3['shift']());}catch(_0x4a8cf5){_0x27e7c3['push'](_0x27e7c3['shift']());}}}(a236_0x13cc,0xa4a8b));export var LogLevel;function a236_0x13cc(){const _0x2523fd=['2089747KDJLig','trace','getMinutes','1081998txDEpS','error','INFO','21GNtrJf','getDate','5261965UTsREp','floor','info','DEBUG','getSeconds','getHours','12lEefDO','abs','158392pvJzzy','getMilliseconds','getMonth','67491nzTjNz','getTimezoneOffset','padStart','TRACE','WARNING','248CpccAh','debug','208523kAAIFF','190XMPBsw','warn','4TXyNZB','WARN','ERROR','toString','2647950qzmwTs'];a236_0x13cc=function(){return _0x2523fd;};return a236_0x13cc();}(function(_0x33e126){const _0xf3ee52=a236_0x1dfd;_0x33e126[_0x33e126['TRACE']=-0x2]=_0xf3ee52(0xcd),_0x33e126[_0x33e126[_0xf3ee52(0xe4)]=-0x1]=_0xf3ee52(0xe4),_0x33e126[_0x33e126[_0xf3ee52(0xde)]=0x0]=_0xf3ee52(0xde),_0x33e126[_0x33e126[_0xf3ee52(0xd5)]=0x1]=_0xf3ee52(0xd5),_0x33e126[_0x33e126[_0xf3ee52(0xd6)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));function a236_0x1dfd(_0x300043,_0x2fa702){_0x300043=_0x300043-0xc5;const _0x13cc8c=a236_0x13cc();let _0x1dfd11=_0x13cc8c[_0x300043];return _0x1dfd11;}export function parseLogLevel(_0x5ebe3b){const _0x3861f4=a236_0x1dfd;switch(_0x5ebe3b['toUpperCase']()){case _0x3861f4(0xcd):return LogLevel[_0x3861f4(0xcd)];case'DEBUG':return LogLevel[_0x3861f4(0xe4)];case _0x3861f4(0xde):return LogLevel['INFO'];case _0x3861f4(0xd5):case _0x3861f4(0xce):return LogLevel[_0x3861f4(0xd5)];case _0x3861f4(0xd6):return LogLevel[_0x3861f4(0xd6)];default:return LogLevel[_0x3861f4(0xde)];}}export function logLevelToString(_0xb6339a){const _0x20486c=a236_0x1dfd;switch(_0xb6339a){case LogLevel[_0x20486c(0xcd)]:return _0x20486c(0xda);case LogLevel[_0x20486c(0xe4)]:return _0x20486c(0xd0);case LogLevel[_0x20486c(0xde)]:return _0x20486c(0xe3);case LogLevel['WARN']:return _0x20486c(0xd3);case LogLevel['ERROR']:return _0x20486c(0xdd);default:return _0x20486c(0xe3);}}export function formatTimestamp(_0x25dffd){const _0x4e7334=a236_0x1dfd,_0x4a81c4=_0x25dffd['getFullYear'](),_0x11698c=(_0x25dffd[_0x4e7334(0xc9)]()+0x1)[_0x4e7334(0xd7)]()[_0x4e7334(0xcc)](0x2,'0'),_0xee31ba=_0x25dffd[_0x4e7334(0xe0)]()[_0x4e7334(0xd7)]()[_0x4e7334(0xcc)](0x2,'0'),_0x592cd2=_0x25dffd[_0x4e7334(0xe6)]()[_0x4e7334(0xd7)]()['padStart'](0x2,'0'),_0x55e67a=_0x25dffd[_0x4e7334(0xdb)]()[_0x4e7334(0xd7)]()[_0x4e7334(0xcc)](0x2,'0'),_0x57467c=_0x25dffd[_0x4e7334(0xe5)]()[_0x4e7334(0xd7)]()[_0x4e7334(0xcc)](0x2,'0'),_0x39f845=_0x25dffd[_0x4e7334(0xc8)]()[_0x4e7334(0xd7)]()[_0x4e7334(0xcc)](0x3,'0'),_0x3c908b=-_0x25dffd[_0x4e7334(0xcb)](),_0x362a44=Math[_0x4e7334(0xe2)](Math[_0x4e7334(0xc6)](_0x3c908b)/0x3c),_0x10e43e=Math[_0x4e7334(0xc6)](_0x3c908b)%0x3c,_0x3d9d31=_0x3c908b>=0x0?'+':'-',_0x27b5c2=''+_0x3d9d31+_0x362a44[_0x4e7334(0xd7)]()[_0x4e7334(0xcc)](0x2,'0')+_0x10e43e[_0x4e7334(0xd7)]()[_0x4e7334(0xcc)](0x2,'0');return _0x4a81c4+'-'+_0x11698c+'-'+_0xee31ba+'\x20'+_0x592cd2+':'+_0x55e67a+':'+_0x57467c+'.'+_0x39f845+_0x27b5c2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a237_0x598e(_0x26756e,_0xf72c92){_0x26756e=_0x26756e-0x1dd;const _0x399cb1=a237_0x399c();let _0x598ed8=_0x399cb1[_0x26756e];return _0x598ed8;}(function(_0x52b94f,_0xe9bb42){const _0x4d9399=a237_0x598e,_0x300a90=_0x52b94f();while(!![]){try{const _0x4c8ce0=-parseInt(_0x4d9399(0x1e3))/0x1+-parseInt(_0x4d9399(0x1de))/0x2+parseInt(_0x4d9399(0x1df))/0x3+parseInt(_0x4d9399(0x1e5))/0x4*(parseInt(_0x4d9399(0x1e6))/0x5)+-parseInt(_0x4d9399(0x1e9))/0x6+parseInt(_0x4d9399(0x1ea))/0x7*(parseInt(_0x4d9399(0x1eb))/0x8)+parseInt(_0x4d9399(0x1e8))/0x9;if(_0x4c8ce0===_0xe9bb42)break;else _0x300a90['push'](_0x300a90['shift']());}catch(_0x5edb7a){_0x300a90['push'](_0x300a90['shift']());}}}(a237_0x399c,0xc2055));function a237_0x399c(){const _0x1b51cb=['Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20integer.','isInteger','222269JoLkek','Invalid\x20timeout\x20value:\x20','23032fuJrus','105hYUxAk','number','7331958BBGeRm','8108574sDhbup','7irjuFS','12672496pFBnGG','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20an\x20integer.','2461154NEkFMI','3238026vRaZNp'];a237_0x399c=function(){return _0x1b51cb;};return a237_0x399c();}export function validateLimitOption(_0x3d9eeb){const _0x42335d=a237_0x598e;if(!Number[_0x42335d(0x1e2)](_0x3d9eeb))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3d9eeb+_0x42335d(0x1dd)};if(_0x3d9eeb<=0x0)return{'isValid':![],'error':_0x42335d(0x1e0)+_0x3d9eeb+_0x42335d(0x1e1)};return{'isValid':!![],'value':_0x3d9eeb};}export function validateTimeoutOption(_0x206015,_0xd2e558=0x1e){const _0x11a693=a237_0x598e;if(_0x206015===undefined)return{'isValid':!![],'value':_0xd2e558};const _0x581796=typeof _0x206015===_0x11a693(0x1e7)?_0x206015:parseFloat(_0x206015);if(isNaN(_0x581796))return{'isValid':![],'error':_0x11a693(0x1e4)+_0x206015+'.\x20Must\x20be\x20a\x20number.'};if(_0x581796<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x581796+_0x11a693(0x1ec)};return{'isValid':!![],'value':_0x581796};}
|
package/dist/utils/process.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a238_0x6e098b=a238_0x22e3;(function(_0x5bf66e,_0x5f5017){const _0x2d8792=a238_0x22e3,_0x5888f7=_0x5bf66e();while(!![]){try{const _0x4dbabb=-parseInt(_0x2d8792(0xfd))/0x1*(parseInt(_0x2d8792(0x135))/0x2)+-parseInt(_0x2d8792(0x11d))/0x3+-parseInt(_0x2d8792(0x124))/0x4+parseInt(_0x2d8792(0xfc))/0x5+-parseInt(_0x2d8792(0x121))/0x6+-parseInt(_0x2d8792(0x126))/0x7*(-parseInt(_0x2d8792(0x114))/0x8)+parseInt(_0x2d8792(0x104))/0x9;if(_0x4dbabb===_0x5f5017)break;else _0x5888f7['push'](_0x5888f7['shift']());}catch(_0x58ae5f){_0x5888f7['push'](_0x5888f7['shift']());}}}(a238_0x4071,0x2f207));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a238_0x6e098b(0x132),a238_0x6e098b(0xfe),'sh',a238_0x6e098b(0x125),a238_0x6e098b(0x12f),'tcsh',a238_0x6e098b(0x120),a238_0x6e098b(0x112),a238_0x6e098b(0xff),a238_0x6e098b(0x103),'nu','ion','elvish',a238_0x6e098b(0x12d)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a238_0x6e098b(0x117),a238_0x6e098b(0x12e),a238_0x6e098b(0x118),a238_0x6e098b(0x109),a238_0x6e098b(0x11f)]);function getProcessInfoWindows(_0x49443b){const _0x4f3a2b=a238_0x6e098b;try{if(!Number[_0x4f3a2b(0xfb)](_0x49443b)||_0x49443b<=0x0)return null;const _0x4c064e=_0x4f3a2b(0x11e)+_0x49443b+_0x4f3a2b(0x12a),_0x2f248f=execSync(_0x4f3a2b(0x110)+_0x4c064e+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':[_0x4f3a2b(0x11b),_0x4f3a2b(0x11b),_0x4f3a2b(0x11b)]})[_0x4f3a2b(0x106)]();if(!_0x2f248f)return null;const [_0x1e1452,..._0x1c9267]=_0x2f248f['split'](','),_0x2ca160=parseInt(_0x1e1452,0xa),_0x36310d=_0x1c9267[_0x4f3a2b(0x130)](',')[_0x4f3a2b(0x106)]();if(isNaN(_0x2ca160)||!_0x36310d)return null;return{'pid':_0x49443b,'ppid':_0x2ca160,'comm':_0x36310d[_0x4f3a2b(0x11c)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x1e18dc){const _0x3ce22e=a238_0x6e098b;try{const _0x507851=0x400000;if(!Number[_0x3ce22e(0xfb)](_0x1e18dc)||_0x1e18dc<=0x0||_0x1e18dc>_0x507851)return null;const _0x4f4516=execSync(_0x3ce22e(0x11a)+_0x1e18dc+_0x3ce22e(0x111),{'encoding':_0x3ce22e(0x108),'stdio':_0x3ce22e(0x11b)})[_0x3ce22e(0x106)](),[_0x13856d,..._0x2453c9]=_0x4f4516[_0x3ce22e(0x115)](/\s+/),_0xce551=parseInt(_0x13856d,0xa),_0x3958c9=_0x2453c9[_0x3ce22e(0x130)]('\x20');if(isNaN(_0xce551))return null;return{'pid':_0x1e18dc,'ppid':_0xce551,'comm':_0x3958c9};}catch{return null;}}function getProcessInfo(_0x36b0a1){const _0x3c1d37=a238_0x6e098b;if(process[_0x3c1d37(0x134)]===_0x3c1d37(0x12c))return getProcessInfoWindows(_0x36b0a1);return getProcessInfoPosix(_0x36b0a1);}function a238_0x22e3(_0x47db03,_0x34d77e){_0x47db03=_0x47db03-0xfa;const _0x40718e=a238_0x4071();let _0x22e39a=_0x40718e[_0x47db03];return _0x22e39a;}function getBasename(_0x1a3b14){const _0x5ee963=a238_0x6e098b;return _0x1a3b14[_0x5ee963(0x11c)](/^-/,'')[_0x5ee963(0x115)]('/')['pop']()?.[_0x5ee963(0x102)]()||'';}function isShell(_0x381c0c){const _0x1bcc51=a238_0x6e098b;return SHELL_NAMES[_0x1bcc51(0x100)](getBasename(_0x381c0c));}function isEphemeralShellSpawner(_0x5ffd68){const _0x3519e4=a238_0x6e098b;return EPHEMERAL_SHELL_SPAWNERS[_0x3519e4(0x100)](getBasename(_0x5ffd68));}let cachedShellPID;function findShellPID(){const _0x178b9e=a238_0x6e098b;if(process['ppid']===undefined)return process[_0x178b9e(0x128)];let _0x166953=process[_0x178b9e(0x10a)];const _0x341e5f=0xa;let _0x5b84a6=0x0;while(_0x5b84a6<_0x341e5f){const _0x8193ce=getProcessInfo(_0x166953);if(!_0x8193ce)break;if(isShell(_0x8193ce[_0x178b9e(0x123)])){const _0x2d4373=getProcessInfo(_0x8193ce[_0x178b9e(0x10a)]);if(_0x2d4373&&isEphemeralShellSpawner(_0x2d4373[_0x178b9e(0x123)])){_0x166953=_0x8193ce[_0x178b9e(0x10a)],_0x5b84a6++;continue;}return _0x8193ce['pid'];}if(_0x8193ce[_0x178b9e(0x10a)]===0x0||_0x8193ce[_0x178b9e(0x10a)]===0x1){if(isShell(_0x8193ce[_0x178b9e(0x123)]))return _0x8193ce[_0x178b9e(0x128)];break;}_0x166953=_0x8193ce['ppid'],_0x5b84a6++;}return process['ppid']!==undefined?process['ppid']:process[_0x178b9e(0x128)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x1d2244){const _0x156778=a238_0x6e098b;if(!Number[_0x156778(0xfb)](_0x1d2244)||_0x1d2244<=0x0)return![];try{return process['kill'](_0x1d2244,0x0),!![];}catch{return![];}}export function openBrowser(_0x4b61b2){const _0x1fc132=a238_0x6e098b;let _0x4ebb4e;try{_0x4ebb4e=new URL(_0x4b61b2);}catch{throw new Error('Invalid\x20URL:\x20'+_0x4b61b2);}if(_0x4ebb4e[_0x1fc132(0x133)]!=='http:'&&_0x4ebb4e['protocol']!==_0x1fc132(0x10f))throw new Error(_0x1fc132(0x107)+_0x4ebb4e[_0x1fc132(0x133)]);const _0x559d57=_0x4ebb4e[_0x1fc132(0x10d)],_0xf9643a=process['platform'];if(_0xf9643a===_0x1fc132(0x12c))spawn(_0x1fc132(0x10e),['/c',_0x1fc132(0x10b),'',_0x559d57],{'detached':!![],'stdio':_0x1fc132(0x119)})[_0x1fc132(0xfa)]();else{const _0xc7aa51=_0xf9643a===_0x1fc132(0x131)?_0x1fc132(0x113):_0x1fc132(0x105);spawn(_0xc7aa51,[_0x559d57],{'detached':!![],'stdio':_0x1fc132(0x119)})['unref']();}}function a238_0x4071(){const _0x18e22a=['xdg-open','trim','Unsupported\x20protocol:\x20','utf-8','electron','ppid','start','exit','href','cmd.exe','https:','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','\x20-o\x20ppid=,comm=','dash','open','3056DJfoUq','split','stdout','claude','cursor','ignore','ps\x20-p\x20','pipe','replace','131016QFCjij','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','treasure\x20studio','csh','1978974DaVxww','test','comm','441488NEEFlQ','fish','2296OUZUTS','which','pid','where.exe','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','map','win32','xonsh','code','ksh','join','darwin','bash','protocol','platform','2mHTguj','unref','isInteger','1166820iCKRnv','82661aSeAvD','zsh','pwsh','has','write','toLowerCase','powershell','3608145YKiQfn'];a238_0x4071=function(){return _0x18e22a;};return a238_0x4071();}export function isWindows(){const _0xb82c35=a238_0x6e098b;return process['platform']===_0xb82c35(0x12c);}export function getCrossSpawnOptions(_0x2b6fb5){return{..._0x2b6fb5??{},'shell':isWindows()};}export function escapeWindowsArg(_0x58fc06){const _0x4d8d80=a238_0x6e098b;if(!/[ \t"&|<>^%!`\r\n]/[_0x4d8d80(0x122)](_0x58fc06))return _0x58fc06;const _0x8bf75a=_0x58fc06['replace'](/"/g,'\x22\x22');return'\x22'+_0x8bf75a+'\x22';}export function crossSpawn(_0x1da0b3,_0x35db69,_0x396046){const _0x37ce3a=a238_0x6e098b;if(isWindows()){const _0x53d6d8=escapeWindowsArg(_0x1da0b3),_0x563758=_0x35db69[_0x37ce3a(0x12b)](escapeWindowsArg),_0x444242=[_0x53d6d8,..._0x563758][_0x37ce3a(0x130)]('\x20');return spawn(_0x444242,[],{..._0x396046,'shell':!![]});}return spawn(_0x1da0b3,_0x35db69,{..._0x396046,'shell':![]});}export function gracefulExit(_0x27af25=0x0){const _0x2164c1=a238_0x6e098b,_0x1efee4=()=>{const _0x5e088c=a238_0x22e3;isWindows()?setTimeout(()=>process[_0x5e088c(0x10c)](_0x27af25),0x32):process[_0x5e088c(0x10c)](_0x27af25);};let _0x5234e0=![];const _0x334418=()=>{if(_0x5234e0)return;_0x5234e0=!![],_0x1efee4();};let _0x260a1a=0x2;const _0x2641bc=()=>{if(--_0x260a1a===0x0)_0x334418();},_0x31d5e7=setTimeout(_0x334418,0x7d0);if(typeof _0x31d5e7[_0x2164c1(0xfa)]==='function')_0x31d5e7[_0x2164c1(0xfa)]();process[_0x2164c1(0x116)][_0x2164c1(0x101)]('',_0x2641bc),process['stderr'][_0x2164c1(0x101)]('',_0x2641bc);}export function findExecutable(_0x4d205b,_0x1aba47=0x1388){return new Promise(_0x30a9e0=>{const _0x4600c6=a238_0x22e3,_0x4784da=isWindows()?_0x4600c6(0x129):_0x4600c6(0x127);execFile(_0x4784da,[_0x4d205b],{'timeout':_0x1aba47,'windowsHide':!![]},(_0x3bbd64,_0x3c6f9b)=>{const _0x323ec3=_0x4600c6;if(_0x3bbd64||!_0x3c6f9b['trim']())_0x30a9e0(null);else{const _0x3c0469=_0x3c6f9b[_0x323ec3(0x106)]()[_0x323ec3(0x115)](/\r?\n/)[0x0];_0x30a9e0(_0x3c0469);}});});}
|
package/dist/utils/prompt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xadf7fd,_0x5ba38a){const _0x5346c7=a239_0x2707,_0x25ada8=_0xadf7fd();while(!![]){try{const _0x2bc7fb=parseInt(_0x5346c7(0xb1))/0x1*(parseInt(_0x5346c7(0xb7))/0x2)+parseInt(_0x5346c7(0xbf))/0x3*(parseInt(_0x5346c7(0xc2))/0x4)+-parseInt(_0x5346c7(0xc1))/0x5*(-parseInt(_0x5346c7(0xaa))/0x6)+-parseInt(_0x5346c7(0xb4))/0x7+parseInt(_0x5346c7(0xb2))/0x8*(parseInt(_0x5346c7(0xb9))/0x9)+parseInt(_0x5346c7(0xae))/0xa+-parseInt(_0x5346c7(0xaf))/0xb;if(_0x2bc7fb===_0x5ba38a)break;else _0x25ada8['push'](_0x25ada8['shift']());}catch(_0x31c1e6){_0x25ada8['push'](_0x25ada8['shift']());}}}(a239_0xd7f7,0x85a1f));import*as a239_0x6ae83e from'readline';import{gracefulExit}from'./process.js';function a239_0x2707(_0x2cf4bc,_0x29c761){_0x2cf4bc=_0x2cf4bc-0xaa;const _0xd7f779=a239_0xd7f7();let _0x270772=_0xd7f779[_0x2cf4bc];return _0x270772;}export function isInteractive(){const _0x506f9e=a239_0x2707;return process[_0x506f9e(0xba)][_0x506f9e(0xac)]===!![];}export async function confirm(_0x169be1){const _0x5838bc=a239_0x2707,_0x5ee622=a239_0x6ae83e[_0x5838bc(0xab)]({'input':process[_0x5838bc(0xba)],'output':process['stdout']});return new Promise(_0x3934ee=>{const _0x1e016d=_0x5838bc;_0x5ee622[_0x1e016d(0xbd)](_0x169be1+_0x1e016d(0xb8),_0xf0d53=>{const _0x5dddf0=_0x1e016d;_0x5ee622[_0x5dddf0(0xb0)](),_0x3934ee(_0xf0d53[_0x5dddf0(0xad)]()==='y'||_0xf0d53['toLowerCase']()===_0x5dddf0(0xbe));});});}export async function confirmKey(_0x5d460f){const _0x19371a=a239_0x2707;if(!process[_0x19371a(0xba)]['isTTY'])return![];return process[_0x19371a(0xb5)]['write'](_0x5d460f+'\x20[y/N]\x20'),new Promise(_0x239703=>{const _0x17339a=_0x19371a,_0x14a0e6=process[_0x17339a(0xba)];_0x14a0e6['setRawMode'](!![]),_0x14a0e6[_0x17339a(0xc3)](),_0x14a0e6['setEncoding'](_0x17339a(0xb6));const _0x3f194b=_0x28d1b3=>{const _0x139ed1=_0x17339a;_0x14a0e6[_0x139ed1(0xbb)](![]),_0x14a0e6['pause'](),_0x14a0e6[_0x139ed1(0xbc)](_0x139ed1(0xb3),_0x3f194b);if(_0x28d1b3==='\x1b'){process[_0x139ed1(0xb5)][_0x139ed1(0xc0)]('\x0a'),_0x239703(![]);return;}_0x28d1b3==='\x03'&&(process[_0x139ed1(0xb5)][_0x139ed1(0xc0)]('\x0a'),gracefulExit(0x82));if(_0x28d1b3['toLowerCase']()==='y'){process[_0x139ed1(0xb5)][_0x139ed1(0xc0)]('y\x0a'),_0x239703(!![]);return;}process[_0x139ed1(0xb5)][_0x139ed1(0xc0)]('\x0a'),_0x239703(![]);};_0x14a0e6['on'](_0x17339a(0xb3),_0x3f194b);});}function a239_0xd7f7(){const _0x3e8067=['18ZEdjxG','createInterface','isTTY','toLowerCase','2594900mZNNUB','5861317ZoMQLn','close','270451wdEZtJ','368yGzsvg','data','6344107GliGLc','stderr','utf8','6mJgZdv','\x20(y/N):\x20','55143wDyNyW','stdin','setRawMode','removeListener','question','yes','9WbOvac','write','739325PAFTbG','253636gZaPMk','resume'];a239_0xd7f7=function(){return _0x3e8067;};return a239_0xd7f7();}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Proxy-aware fetch helper.
|
|
3
|
+
*
|
|
4
|
+
* Node's global fetch (undici) ignores HTTPS_PROXY/HTTP_PROXY, so any outbound
|
|
5
|
+
* request that must traverse a corporate forward proxy has to be driven by an
|
|
6
|
+
* undici ProxyAgent. The dispatcher and the fetch driver must come from the
|
|
7
|
+
* *same* undici copy: feeding a v8 ProxyAgent to Node's built-in fetch throws
|
|
8
|
+
* "invalid onRequestStart method" (undici handler-API mismatch). This helper
|
|
9
|
+
* loads undici dynamically (browser-safe — the import only happens when a proxy
|
|
10
|
+
* is configured) and returns a fetch bound to a ProxyAgent for that proxy URL.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Mask credentials in a proxy URL for logging.
|
|
14
|
+
* `http://user:pass@proxy:8080` -> `http://****:****@proxy:8080`
|
|
15
|
+
*/
|
|
16
|
+
export declare function maskProxyCredentials(proxyUrl: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Create a fetch function that routes all requests through the given proxy.
|
|
19
|
+
*
|
|
20
|
+
* The returned function has the same signature as the global `fetch`; it
|
|
21
|
+
* injects the ProxyAgent dispatcher into every call, so callers use it exactly
|
|
22
|
+
* like `fetch`. Uses undici's own fetch (paired with the ProxyAgent) so the
|
|
23
|
+
* dispatcher's handler API matches the fetch driver's.
|
|
24
|
+
*
|
|
25
|
+
* @param proxyUrl - Proxy URL, optionally with credentials
|
|
26
|
+
* (e.g. `http://user:pass@proxy.corp.com:8080`)
|
|
27
|
+
*/
|
|
28
|
+
export declare function createProxyFetch(proxyUrl: string): Promise<typeof fetch>;
|
|
29
|
+
//# sourceMappingURL=proxy-fetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-fetch.d.ts","sourceRoot":"","sources":["../../src/utils/proxy-fetch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAa7D;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,KAAK,CAAC,CAQ9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a240_0x515c(){const _0x51d136=['undici','8LzqcoZ','162592ausiPN','10372qoifji','2336334xnuOzt','76245usMqtp','username','173535BJaZMc','84udNBnM','30onVyJW','****','12cmoamZ','308572yuoXGu','18GsuhXA','947403dFTZRV','204Rtfcfw'];a240_0x515c=function(){return _0x51d136;};return a240_0x515c();}(function(_0x5ba295,_0x6eb447){const _0x3281b7=a240_0x40f1,_0x32eec1=_0x5ba295();while(!![]){try{const _0x28ddf7=parseInt(_0x3281b7(0x10e))/0x1*(-parseInt(_0x3281b7(0x10c))/0x2)+-parseInt(_0x3281b7(0x116))/0x3*(-parseInt(_0x3281b7(0x117))/0x4)+parseInt(_0x3281b7(0x112))/0x5*(-parseInt(_0x3281b7(0x118))/0x6)+-parseInt(_0x3281b7(0x113))/0x7*(-parseInt(_0x3281b7(0x10d))/0x8)+parseInt(_0x3281b7(0x119))/0x9*(-parseInt(_0x3281b7(0x114))/0xa)+parseInt(_0x3281b7(0x10f))/0xb+parseInt(_0x3281b7(0x10a))/0xc*(-parseInt(_0x3281b7(0x110))/0xd);if(_0x28ddf7===_0x6eb447)break;else _0x32eec1['push'](_0x32eec1['shift']());}catch(_0xdd597){_0x32eec1['push'](_0x32eec1['shift']());}}}(a240_0x515c,0x31bdb));function a240_0x40f1(_0xb024a3,_0x33eb1d){_0xb024a3=_0xb024a3-0x10a;const _0x515c20=a240_0x515c();let _0x40f1e7=_0x515c20[_0xb024a3];return _0x40f1e7;}export function maskProxyCredentials(_0x2645d4){const _0x28ee49=a240_0x40f1;try{const _0x2f6d69=new URL(_0x2645d4);return _0x2f6d69[_0x28ee49(0x111)]&&(_0x2f6d69[_0x28ee49(0x111)]=_0x28ee49(0x115)),_0x2f6d69['password']&&(_0x2f6d69['password']='****'),_0x2f6d69['toString']();}catch{return _0x2645d4;}}export async function createProxyFetch(_0x506144){const _0x45c11c=a240_0x40f1,{ProxyAgent:_0x214726,fetch:_0x202598}=await import(_0x45c11c(0x10b)),_0x4e464a=new _0x214726(_0x506144);return(_0x421793,_0x418d5b)=>_0x202598(_0x421793,{..._0x418d5b,'dispatcher':_0x4e464a});}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-fetch.js","sourceRoot":"","sources":["../../src/utils/proxy-fetch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAgB;IACnD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC9B,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;YACjB,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC;QACxB,CAAC;QACD,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;YACjB,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC;QACxB,CAAC;QACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,QAAgB;IACrD,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC5C,OAAO,CAAC,CAAC,KAAkC,EAAE,IAAkC,EAAE,EAAE,CAChF,WAAuC,CAAC,KAAK,EAAE;QAC9C,GAAG,IAAI;QACP,UAAU;KACI,CAAC,CAAiB,CAAC;AACvC,CAAC"}
|
package/dist/utils/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42060c,_0x59894e){const _0x2f4895=a241_0x406a,_0xb103b1=_0x42060c();while(!![]){try{const _0x5017ae=parseInt(_0x2f4895(0x158))/0x1*(parseInt(_0x2f4895(0x15a))/0x2)+parseInt(_0x2f4895(0x161))/0x3*(parseInt(_0x2f4895(0x159))/0x4)+-parseInt(_0x2f4895(0x163))/0x5+parseInt(_0x2f4895(0x15d))/0x6+parseInt(_0x2f4895(0x152))/0x7*(parseInt(_0x2f4895(0x154))/0x8)+parseInt(_0x2f4895(0x166))/0x9*(parseInt(_0x2f4895(0x157))/0xa)+-parseInt(_0x2f4895(0x167))/0xb*(parseInt(_0x2f4895(0x14f))/0xc);if(_0x5017ae===_0x59894e)break;else _0xb103b1['push'](_0xb103b1['shift']());}catch(_0xd78286){_0xb103b1['push'](_0xb103b1['shift']());}}}(a241_0x5914,0x675d7));function a241_0x5914(){const _0x2896a2=['stderr','replace','trim','60aitlqg','phase','2517800UVesAO','extra','text','13086KqikVg','6011324vvbFsL','\x20[Job\x20ID:\x20','isTTY','start','...','clock','24RUBExN','floor','stop','457618cTTRdy','Processing','40SFuJcI','intervalFactory','isSpinning','1030PKHjqJ','16097uXOgZW','135112VnpCYF','20YTPBul','jobId','now','4240494RCprUS'];a241_0x5914=function(){return _0x2896a2;};return a241_0x5914();}import a241_0x3523f2 from'ora';import{isWindows}from'./process.js';function a241_0x406a(_0x2062ca,_0x33ac0b){_0x2062ca=_0x2062ca-0x14b;const _0x5914b3=a241_0x5914();let _0x406ae4=_0x5914b3[_0x2062ca];return _0x406ae4;}const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x32af2e,_0x36d516={}){const _0x4997c4=a241_0x406a,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x36d516;return a241_0x3523f2({'text':_0x32af2e,'color':'cyan','stream':process[_0x4997c4(0x15e)],'isEnabled':forceEnabled||process[_0x4997c4(0x15e)][_0x4997c4(0x14b)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x3aeebc,_0x2a2f8f,_0x125f83={}){const _0x19a0f3=a241_0x406a,_0xda87d7=_0x125f83[_0x19a0f3(0x14e)]??(()=>Date[_0x19a0f3(0x15c)]()),_0x2e6aea=createCommandSpinner(_0x3aeebc,_0x125f83);_0x2e6aea[_0x19a0f3(0x14c)]();const _0x1ab867=_0xda87d7();try{const _0x5f1d33=await _0x2a2f8f(),_0x4b808f=_0xda87d7()-_0x1ab867;return _0x2e6aea['stop'](),{'data':_0x5f1d33,'elapsedMs':_0x4b808f};}catch(_0x5d6c69){_0x2e6aea[_0x19a0f3(0x151)]();throw _0x5d6c69;}}export async function withProgressSpinner(_0x410f99,_0x49f184,_0x90d84f={}){const _0x288c4f=a241_0x406a,_0x3b8057=_0x90d84f['clock']??(()=>Date[_0x288c4f(0x15c)]()),_0x18aaf9=_0x90d84f[_0x288c4f(0x155)]??setInterval,_0x2f7ef1=createCommandSpinner(_0x410f99,_0x90d84f);_0x2f7ef1[_0x288c4f(0x14c)]();const _0x437e1b=_0x3b8057(),_0x2bf8b8=_0x410f99[_0x288c4f(0x15f)](_0x288c4f(0x14d),'')[_0x288c4f(0x160)]()||_0x288c4f(0x153),_0x43d61d={};let _0x10eb45=_0x410f99;const _0x259a47=()=>{const _0x18d7a1=_0x288c4f;if(!_0x2f7ef1[_0x18d7a1(0x156)])return;const _0x33e5d9=_0x3b8057()-_0x437e1b,_0x30b4b2=formatElapsed(_0x33e5d9),_0x229cc3=_0x43d61d[_0x18d7a1(0x162)]?.[_0x18d7a1(0x160)]()||_0x2bf8b8,_0x5966b9=_0x43d61d[_0x18d7a1(0x15b)]?'\x20[Job\x20ID:\x20'+_0x43d61d['jobId']+']':'',_0x566a27=_0x43d61d['extra']?'\x20'+_0x43d61d[_0x18d7a1(0x164)]:'',_0x2410fc=_0x229cc3+'\x20'+_0x30b4b2+_0x566a27+_0x5966b9;_0x2410fc!==_0x10eb45&&_0x2410fc['trim']()&&(_0x2f7ef1[_0x18d7a1(0x165)]=_0x2410fc,_0x10eb45=_0x2410fc);},_0x1826a8=_0x18aaf9(()=>{_0x259a47();},0x3e8),_0x548a84={'setPhase':_0x2a1fd5=>{const _0x56afd1=_0x288c4f;_0x43d61d['phase']=_0x2a1fd5;const _0x2cab83=_0x2a1fd5?.[_0x56afd1(0x160)]()||_0x2bf8b8,_0x4da3d4=_0x3b8057()-_0x437e1b,_0x307943=formatElapsed(_0x4da3d4),_0x467d74=_0x43d61d[_0x56afd1(0x15b)]?_0x56afd1(0x168)+_0x43d61d[_0x56afd1(0x15b)]+']':'',_0x5b8ede=_0x43d61d['extra']?'\x20'+_0x43d61d[_0x56afd1(0x164)]:'',_0x33e170=_0x2cab83+'\x20'+_0x307943+_0x5b8ede+_0x467d74;_0x2f7ef1['isSpinning']&&_0x33e170[_0x56afd1(0x160)]()&&(_0x2f7ef1[_0x56afd1(0x165)]=_0x33e170,_0x10eb45=_0x33e170);},'setJobId':_0x4d5cbb=>{const _0xa3596a=_0x288c4f;_0x43d61d[_0xa3596a(0x15b)]=_0x4d5cbb,_0x259a47();},'setExtra':_0x54642f=>{const _0x2f8893=_0x288c4f;_0x43d61d[_0x2f8893(0x164)]=_0x54642f,_0x259a47();}};_0x259a47();try{const _0x3667bd=await _0x49f184(_0x548a84),_0x129659=_0x3b8057()-_0x437e1b;return{'data':_0x3667bd,'elapsedMs':_0x129659};}finally{clearInterval(_0x1826a8),_0x2f7ef1[_0x288c4f(0x151)]();}}export function formatElapsed(_0x4c4916){const _0x2a9650=a241_0x406a,_0xb9c4e9=Math[_0x2a9650(0x150)](_0x4c4916/0x3e8);if(_0xb9c4e9<0x3c)return(_0x4c4916/0x3e8)['toFixed'](0x1)+'s';const _0x522688=Math['floor'](_0xb9c4e9/0x3c),_0x356781=_0xb9c4e9%0x3c;if(_0x522688<0x3c)return _0x522688+'m\x20'+_0x356781+'s';const _0x10d17a=Math[_0x2a9650(0x150)](_0x522688/0x3c),_0x2a7a26=_0x522688%0x3c;return _0x10d17a+'h\x20'+_0x2a7a26+'m';}
|
package/dist/utils/sse-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a242_0x37fe(_0x2739ec,_0x19fdd6){_0x2739ec=_0x2739ec-0xff;const _0x17837e=a242_0x1783();let _0x37fe0e=_0x17837e[_0x2739ec];return _0x37fe0e;}(function(_0x4e1262,_0x260bd9){const _0x5a4172=a242_0x37fe,_0x2578fc=_0x4e1262();while(!![]){try{const _0x12007c=-parseInt(_0x5a4172(0x10d))/0x1*(-parseInt(_0x5a4172(0x104))/0x2)+-parseInt(_0x5a4172(0xff))/0x3*(-parseInt(_0x5a4172(0x103))/0x4)+parseInt(_0x5a4172(0x10c))/0x5*(-parseInt(_0x5a4172(0x10a))/0x6)+parseInt(_0x5a4172(0x116))/0x7*(-parseInt(_0x5a4172(0x117))/0x8)+parseInt(_0x5a4172(0x107))/0x9+parseInt(_0x5a4172(0x115))/0xa*(-parseInt(_0x5a4172(0x105))/0xb)+parseInt(_0x5a4172(0x100))/0xc;if(_0x12007c===_0x260bd9)break;else _0x2578fc['push'](_0x2578fc['shift']());}catch(_0x53efe2){_0x2578fc['push'](_0x2578fc['shift']());}}}(a242_0x1783,0x49b14));export async function*parseSSEStream(_0x445def,_0x275a5e){const _0x34498a=a242_0x37fe;if(!_0x445def['body'])throw new Error(_0x34498a(0x114));const _0x5b4b70=_0x445def[_0x34498a(0x113)][_0x34498a(0x110)](),_0x3f296d=new TextDecoder();let _0x1ae902='',_0x4bb96d={};try{while(!![]){const {done:_0xe971e6,value:_0x5461e7}=await _0x5b4b70['read']();if(_0xe971e6){if(_0x4bb96d[_0x34498a(0x108)]){_0x275a5e?.[_0x34498a(0x109)](_0x34498a(0x101)+_0x4bb96d['data']);const _0xd09375=parseSSEData(_0x4bb96d['data']);yield _0xd09375;}break;}_0x1ae902+=_0x3f296d['decode'](_0x5461e7,{'stream':!![]});const _0x5e37fa=_0x1ae902[_0x34498a(0x10b)]('\x0a');_0x1ae902=_0x5e37fa[_0x34498a(0x10e)]()||'';for(const _0x875e38 of _0x5e37fa){if(_0x875e38[_0x34498a(0x10f)]()===''){if(_0x4bb96d['data']){_0x275a5e?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x4bb96d[_0x34498a(0x108)]);const _0x5cb0b5=parseSSEData(_0x4bb96d[_0x34498a(0x108)]);yield _0x5cb0b5,_0x4bb96d={};}continue;}if(_0x875e38['startsWith'](':'))continue;const _0x82c7b7=_0x875e38[_0x34498a(0x118)](':');if(_0x82c7b7===-0x1)continue;const _0x256250=_0x875e38[_0x34498a(0x11a)](0x0,_0x82c7b7);let _0x323f4a=_0x875e38['slice'](_0x82c7b7+0x1);_0x323f4a[_0x34498a(0x111)]('\x20')&&(_0x323f4a=_0x323f4a[_0x34498a(0x11a)](0x1));switch(_0x256250){case _0x34498a(0x102):_0x4bb96d[_0x34498a(0x102)]=_0x323f4a;break;case _0x34498a(0x108):_0x4bb96d[_0x34498a(0x108)]=_0x4bb96d[_0x34498a(0x108)]?_0x4bb96d[_0x34498a(0x108)]+'\x0a'+_0x323f4a:_0x323f4a;break;case'id':_0x4bb96d['id']=_0x323f4a;break;}}}}finally{_0x5b4b70[_0x34498a(0x119)]();}}function a242_0x1783(){const _0x3b6643=['parse','body','Response\x20body\x20is\x20null','10SGJLBO','126287vlfoVI','136btTYAV','indexOf','releaseLock','slice','12QHFmMl','5620740mpUmVz','[LLM\x20API\x20SSE]\x20','event','149084izHrmu','2kWcVtz','463562nOXfol','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','723951pGOWQp','data','debug','6xuQDab','split','1072415UcwUcK','167248buFONG','pop','trim','getReader','startsWith'];a242_0x1783=function(){return _0x3b6643;};return a242_0x1783();}function parseSSEData(_0x2ce7b2){const _0x1b9cc6=a242_0x37fe;try{return JSON[_0x1b9cc6(0x112)](_0x2ce7b2);}catch(_0x5357a5){throw new Error(_0x1b9cc6(0x106)+_0x2ce7b2,{'cause':_0x5357a5});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x389682,_0x2fbdb9){const _0x146072=a243_0x2e90,_0x34a86e=_0x389682();while(!![]){try{const _0x4f16a0=-parseInt(_0x146072(0xf4))/0x1+parseInt(_0x146072(0xe9))/0x2+-parseInt(_0x146072(0xed))/0x3+parseInt(_0x146072(0xef))/0x4+parseInt(_0x146072(0xf0))/0x5+parseInt(_0x146072(0xfa))/0x6+-parseInt(_0x146072(0xf6))/0x7;if(_0x4f16a0===_0x2fbdb9)break;else _0x34a86e['push'](_0x34a86e['shift']());}catch(_0x140479){_0x34a86e['push'](_0x34a86e['shift']());}}}(a243_0x4fbf,0xe627d));import a243_0x412f75 from'string-width';export function stringWidth(_0x2ba3aa){return a243_0x412f75(_0x2ba3aa);}export function padEnd(_0x5ab281,_0x2602d1){const _0x4be9c1=a243_0x2e90,_0x2a81e5=stringWidth(_0x5ab281);if(_0x2a81e5>=_0x2602d1)return _0x5ab281;return _0x5ab281+'\x20'[_0x4be9c1(0xfd)](_0x2602d1-_0x2a81e5);}export function padStart(_0x19a86a,_0x325b43){const _0x225865=stringWidth(_0x19a86a);if(_0x225865>=_0x325b43)return _0x19a86a;return'\x20'['repeat'](_0x325b43-_0x225865)+_0x19a86a;}export function centerAlign(_0x2c9299,_0x2cfc91){const _0x1b12d2=a243_0x2e90,_0x1f0b85=stringWidth(_0x2c9299);if(_0x1f0b85>_0x2cfc91){if(_0x2cfc91<=0x1)return'…'[_0x1b12d2(0xfb)](0x0,_0x2cfc91);let _0x127466=_0x2c9299;while(stringWidth(_0x127466+'…')>_0x2cfc91){_0x127466=_0x127466[_0x1b12d2(0xf2)](0x0,-0x1);}return _0x127466+'…';}if(_0x1f0b85===_0x2cfc91)return _0x2c9299;const _0x5abc89=_0x2cfc91-_0x1f0b85,_0x39e7cc=Math['floor'](_0x5abc89/0x2),_0x258b64=_0x5abc89-_0x39e7cc;return'\x20'['repeat'](_0x39e7cc)+_0x2c9299+'\x20'[_0x1b12d2(0xfd)](_0x258b64);}function a243_0x4fbf(){const _0x426d00=['padStart','4886190udXTqI','substring','floor','repeat','Cannot\x20escape\x20empty\x20string\x20literal','1388014jMPSSh','toLowerCase','\x5c$&','unknown','1508448XYyeiI','toString','4970372wfodvq','2147290gRbgSe','test','slice','trim','577313SqsbVW','length','8103039tChhqz','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','replace'];a243_0x4fbf=function(){return _0x426d00;};return a243_0x4fbf();}export function escapeStringLiteral(_0x36faec){const _0x317882=a243_0x2e90;if(!_0x36faec||_0x36faec[_0x317882(0xf3)]()[_0x317882(0xf5)]===0x0)throw new Error(_0x317882(0xfe));const _0x633661=_0x36faec[_0x317882(0xf8)](/'/g,'\x27\x27');return'\x27'+_0x633661+'\x27';}export function globToLike(_0xc48fa6){const _0x6f1285=a243_0x2e90;let _0x36aee8=_0xc48fa6['replace'](/\\/g,'\x5c\x5c')[_0x6f1285(0xf8)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x36aee8=_0x36aee8[_0x6f1285(0xf8)](/\*/g,'%')[_0x6f1285(0xf8)](/\?/g,'_'),_0x36aee8;}export function buildLikePattern(_0x545eeb){const _0x1920ce=a243_0x2e90;if(!_0x545eeb||_0x545eeb[_0x1920ce(0xf3)]()[_0x1920ce(0xf5)]===0x0)throw new Error(_0x1920ce(0xf7));const _0x26cb33=globToLike(_0x545eeb),_0x417364=_0x26cb33[_0x1920ce(0xf8)](/'/g,'\x27\x27');return'\x27'+_0x417364+'\x27';}export function matchGlobPattern(_0x2045e7,_0x42d9c1){const _0x5491f1=a243_0x2e90,_0x9ff4ac=_0x42d9c1['replace'](/[.+^${}()|[\]\\]/g,_0x5491f1(0xeb))[_0x5491f1(0xf8)](/\*/g,'.*')[_0x5491f1(0xf8)](/\?/g,'.'),_0x2587ee=new RegExp('^'+_0x9ff4ac+'$');return _0x2587ee[_0x5491f1(0xf1)](_0x2045e7);}function a243_0x2e90(_0x517fb5,_0x19640b){_0x517fb5=_0x517fb5-0xe9;const _0x4fbf4a=a243_0x4fbf();let _0x2e9013=_0x4fbf4a[_0x517fb5];return _0x2e9013;}export function getSanitizedUsername(){const _0xbc1f12=a243_0x2e90,_0x524974=process.env.USER||process.env.USERNAME||_0xbc1f12(0xec);return _0x524974[_0xbc1f12(0xf8)](/[^a-zA-Z0-9]/g,'')[_0xbc1f12(0xea)]();}export function generateRandomHex(){const _0x4c3846=a243_0x2e90,_0x4f34fe=Math[_0x4c3846(0xfc)](Math['random']()*0xfffff);return _0x4f34fe[_0x4c3846(0xee)](0x10)[_0x4c3846(0xf9)](0x5,'0');}export function sanitizeFileName(_0x3b1147){const _0x2b8504=a243_0x2e90;return _0x3b1147[_0x2b8504(0xea)]()[_0x2b8504(0xf8)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x2b8504(0xf8)](/-+/g,'-')[_0x2b8504(0xf8)](/^-|-$/g,'');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a244_0x4c81(_0x1939ab,_0x5a08fb){_0x1939ab=_0x1939ab-0xac;const _0x34adfc=a244_0x34ad();let _0x4c814e=_0x34adfc[_0x1939ab];return _0x4c814e;}(function(_0xaa02fb,_0x4a958a){const _0x3fcff8=a244_0x4c81,_0x1857d4=_0xaa02fb();while(!![]){try{const _0x2407e0=-parseInt(_0x3fcff8(0xb7))/0x1*(parseInt(_0x3fcff8(0xb3))/0x2)+-parseInt(_0x3fcff8(0xbb))/0x3*(-parseInt(_0x3fcff8(0xad))/0x4)+-parseInt(_0x3fcff8(0xc1))/0x5+-parseInt(_0x3fcff8(0xbd))/0x6+parseInt(_0x3fcff8(0xba))/0x7*(-parseInt(_0x3fcff8(0xbc))/0x8)+parseInt(_0x3fcff8(0xb4))/0x9+-parseInt(_0x3fcff8(0xaf))/0xa*(-parseInt(_0x3fcff8(0xb2))/0xb);if(_0x2407e0===_0x4a958a)break;else _0x1857d4['push'](_0x1857d4['shift']());}catch(_0x3a95d4){_0x1857d4['push'](_0x1857d4['shift']());}}}(a244_0x34ad,0xd76b3));function hasWildcard(_0x3d8bb9){return _0x3d8bb9['includes']('*')||_0x3d8bb9['includes']('?');}export function parseTableReference(_0x1e8ff0){const _0x20312e=a244_0x4c81;if(!_0x1e8ff0||_0x1e8ff0['trim']()[_0x20312e(0xb8)]===0x0)throw new Error(_0x20312e(0xb9));const _0x6206f2=_0x1e8ff0[_0x20312e(0xc2)](),_0x3427f9={'original':_0x6206f2},_0xc7b0d0=_0x6206f2[_0x20312e(0xbe)]('.');if(_0xc7b0d0['length']===0x1){const _0x12d96f=_0xc7b0d0[0x0];if(!_0x12d96f)throw new Error(_0x20312e(0xc0));_0x3427f9[_0x20312e(0xb6)]=_0x12d96f;}else{if(_0xc7b0d0[_0x20312e(0xb8)]===0x2){const [_0x16a183,_0x35218e]=_0xc7b0d0;if(!_0x16a183)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x35218e)throw new Error(_0x20312e(0xae));_0x3427f9[_0x20312e(0xb0)]=_0x16a183,_0x3427f9['table']=_0x35218e;}else{if(_0xc7b0d0[_0x20312e(0xb8)]===0x3){const [_0x18ea1a,_0x2445c3,_0x2b0412]=_0xc7b0d0;if(!_0x18ea1a||!_0x2445c3||!_0x2b0412)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x3427f9[_0x20312e(0xb1)]=_0x18ea1a,_0x3427f9['database']=_0x2445c3,_0x3427f9[_0x20312e(0xb6)]=_0x2b0412;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x3427f9;}function a244_0x34ad(){const _0x431652=['join','Pattern\x20cannot\x20be\x20just\x20a\x20dot','691515xLjdlz','trim','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','4cQNovF','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','10dQOBME','database','catalog','39260661xXvFsl','154npuNXp','3750579VPLoIT','push','table','9293nEcqDf','length','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','5606839bwWeMx','2246331ZhPJLf','16OvaOmg','8378916zFBZYZ','split'];a244_0x34ad=function(){return _0x431652;};return a244_0x34ad();}export function formatTableReference(_0x469d5c){const _0x1d3975=a244_0x4c81,_0x23cb6c=[];return _0x469d5c['catalog']&&_0x23cb6c[_0x1d3975(0xb5)](_0x469d5c[_0x1d3975(0xb1)]),_0x469d5c['database']&&_0x23cb6c[_0x1d3975(0xb5)](_0x469d5c['database']),_0x469d5c['table']&&_0x23cb6c['push'](_0x469d5c[_0x1d3975(0xb6)]),_0x23cb6c[_0x1d3975(0xbf)]('.');}export function validateTableListReference(_0xa518e8){return undefined;}export function validateTableDescribeReference(_0x1983c3){const _0xd45206=a244_0x4c81;if(!_0x1983c3[_0xd45206(0xb6)])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x1983c3[_0xd45206(0xb0)]&&hasWildcard(_0x1983c3[_0xd45206(0xb0)]))return _0xd45206(0xac);if(hasWildcard(_0x1983c3[_0xd45206(0xb6)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
|
package/dist/utils/tdx-logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a245_0x3f43(_0x2ab583,_0x5762ec){_0x2ab583=_0x2ab583-0xbf;const _0x17c093=a245_0x17c0();let _0x3f4344=_0x17c093[_0x2ab583];return _0x3f4344;}const a245_0x5900ea=a245_0x3f43;(function(_0xc7fd45,_0x1cc353){const _0x23bf23=a245_0x3f43,_0x3f249e=_0xc7fd45();while(!![]){try{const _0x3b0339=parseInt(_0x23bf23(0xc6))/0x1+-parseInt(_0x23bf23(0xc1))/0x2+-parseInt(_0x23bf23(0xcd))/0x3+-parseInt(_0x23bf23(0xc5))/0x4+parseInt(_0x23bf23(0xd5))/0x5+-parseInt(_0x23bf23(0xc8))/0x6+-parseInt(_0x23bf23(0xc0))/0x7*(-parseInt(_0x23bf23(0xbf))/0x8);if(_0x3b0339===_0x1cc353)break;else _0x3f249e['push'](_0x3f249e['shift']());}catch(_0x4770f2){_0x3f249e['push'](_0x3f249e['shift']());}}}(a245_0x17c0,0xb29af));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a245_0x5900ea(0xcc)];['fileOnly'];['logDir'];[a245_0x5900ea(0xd1)];[a245_0x5900ea(0xda)];['fileHandler']=null;[a245_0x5900ea(0xc9)]=null;constructor(_0x1f8267=LogLevel['INFO'],_0x40dcf5=![],_0x6f6164,_0x35f947=a245_0x5900ea(0xd2)){const _0x302013=a245_0x5900ea;this[_0x302013(0xcc)]=_0x1f8267,this[_0x302013(0xd6)]=_0x40dcf5,this[_0x302013(0xc2)]=_0x6f6164||join(getGlobalCacheDir(),'logs'),this['logFileName']=_0x35f947,this[_0x302013(0xda)]=Logger['of'](_0x302013(0xca));}async[a245_0x5900ea(0xd7)](){const _0x364b90=a245_0x5900ea,_0x2cdfec=join(this[_0x364b90(0xc2)],this[_0x364b90(0xd1)]);if(Logger[_0x364b90(0xcb)]()){!this[_0x364b90(0xd6)]&&(this[_0x364b90(0xc9)]=new ConsoleHandler({'minLevel':LogLevel[_0x364b90(0xcf)],'colors':!![]}),Logger['addHandler'](this['consoleHandler']));return;}this[_0x364b90(0xc4)]=new FileHandler({'filePath':_0x2cdfec});const _0x2599e0=[this[_0x364b90(0xc4)]];!this[_0x364b90(0xd6)]&&(this[_0x364b90(0xc9)]=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),_0x2599e0[_0x364b90(0xd0)](this[_0x364b90(0xc9)])),await Logger[_0x364b90(0xd7)]({'defaultLevel':this['logLevel'],'handlers':_0x2599e0,'formatter':new DefaultLogFormatter({'colors':!![]})});}['debug'](..._0xcc031d){const _0x5d5759=a245_0x5900ea;this['logger'][_0x5d5759(0xd9)](..._0xcc031d);}[a245_0x5900ea(0xc7)](..._0x3d8f08){const _0x532a97=a245_0x5900ea;this[_0x532a97(0xda)][_0x532a97(0xc7)](..._0x3d8f08);}[a245_0x5900ea(0xd8)](..._0x4996e8){const _0x32ee7b=a245_0x5900ea;this[_0x32ee7b(0xda)]['info'](..._0x4996e8);}[a245_0x5900ea(0xc3)](..._0x196b83){const _0x5a31d5=a245_0x5900ea;this[_0x5a31d5(0xda)][_0x5a31d5(0xc3)](..._0x196b83);}['error'](..._0x3aaadb){const _0xb155bc=a245_0x5900ea;this[_0xb155bc(0xda)]['error'](..._0x3aaadb);}async[a245_0x5900ea(0xd3)](){const _0x355ccb=a245_0x5900ea;this[_0x355ccb(0xda)][_0x355ccb(0xd8)](_0x355ccb(0xd4)),await Logger[_0x355ccb(0xce)]();}['getLogPath'](){const _0x528f8c=a245_0x5900ea;return join(this[_0x528f8c(0xc2)],this[_0x528f8c(0xd1)]);}}function a245_0x17c0(){const _0x28e13f=['3021030ApWVFi','consoleHandler','tdx','isInitialized','logLevel','857823SdHZBr','shutdown','INFO','push','logFileName','tdx.log','close','Session\x20ended','6398140dduYbS','fileOnly','init','info','debug','logger','8RKPEBm','10090283yvhKJn','2686126GsAPZr','logDir','warn','fileHandler','1021092QzrIii','398252KYqUmn','trace'];a245_0x17c0=function(){return _0x28e13f;};return a245_0x17c0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a246_0x3a59c1=a246_0x5f27;(function(_0x303ea5,_0x4b4848){const _0x3abe90=a246_0x5f27,_0x2d2832=_0x303ea5();while(!![]){try{const _0xa53ae4=-parseInt(_0x3abe90(0x1a6))/0x1*(-parseInt(_0x3abe90(0x1be))/0x2)+parseInt(_0x3abe90(0x1c6))/0x3+-parseInt(_0x3abe90(0x1c5))/0x4+-parseInt(_0x3abe90(0x1b1))/0x5*(-parseInt(_0x3abe90(0x1b6))/0x6)+-parseInt(_0x3abe90(0x1b9))/0x7*(parseInt(_0x3abe90(0x19e))/0x8)+parseInt(_0x3abe90(0x1b5))/0x9*(parseInt(_0x3abe90(0x1a2))/0xa)+-parseInt(_0x3abe90(0x1c7))/0xb;if(_0xa53ae4===_0x4b4848)break;else _0x2d2832['push'](_0x2d2832['shift']());}catch(_0x2747b1){_0x2d2832['push'](_0x2d2832['shift']());}}}(a246_0x1e4f,0x7439e));import{get}from'https';function a246_0x5f27(_0x2e4e17,_0x30370c){_0x2e4e17=_0x2e4e17-0x19b;const _0x1e4fe9=a246_0x1e4f();let _0x5f27b3=_0x1e4fe9[_0x2e4e17];return _0x5f27b3;}import{gt,valid}from'semver';import a246_0x42338d from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a246_0x3a59c1(0x1b4),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a246_0x3a59c1(0x1c8),a246_0x3a59c1(0x1bd)),nextVersionCache=createGlobalCache('last_version_check_next',a246_0x3a59c1(0x1ab));function getCacheForChannel(_0x2c51f8){const _0x1766e5=a246_0x3a59c1;return _0x2c51f8===_0x1766e5(0x1a9)?nextVersionCache:stableVersionCache;}function readCache(_0x37d2b9){const _0x3254d5=a246_0x3a59c1;return getCacheForChannel(_0x37d2b9)[_0x3254d5(0x1ba)]()??null;}function a246_0x1e4f(){const _0x18a72c=['644HWHtVZ','read','tdx\x20upgrade','tdx\x20upgrade\x20--next','utils/version-check','20OlXtyp','latestVersion','version','socket','\x0aRun:\x20','yellow','\x0aUpdate\x20available:\x20','1722728qqSYXI','734019hBUCpp','6640557iacajB','last_version_check','unref','Request\x20timeout','getTime','green','48728fJVhLk','dim','write','error','6200sUcHlb','background','Run:','channel','62889znccZp','destroy','Update\x20available:','next','Invalid\x20version\x20format','utils/version-check-next','now','latest','data','end','currentVersion','5fgfFVu','statusCode','isTTY','https://registry.npmjs.org/@treasuredata/tdx','9054VdNRZz','3441120Cjngzh','toISOString','updateAvailable'];a246_0x1e4f=function(){return _0x18a72c;};return a246_0x1e4f();}function writeCache(_0x568594,_0x20887c){const _0x15d446=a246_0x3a59c1;try{getCacheForChannel(_0x20887c)[_0x15d446(0x1a0)]({'lastCheck':new Date()[_0x15d446(0x1b7)](),'latestVersion':_0x568594});}catch{}}function isCacheValid(_0xb77446){const _0x115842=a246_0x3a59c1;if(!_0xb77446)return![];const _0x1d3edd=new Date(_0xb77446['lastCheck'])[_0x115842(0x19c)](),_0x2b850b=Date[_0x115842(0x1ac)]();return _0x2b850b-_0x1d3edd<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x2f7b4c='stable',_0x1d8f8c){const _0x2e2036=a246_0x3a59c1,_0x3ee793=_0x1d8f8c?.[_0x2e2036(0x1a3)]??![],_0xde4b9a=_0x2f7b4c===_0x2e2036(0x1a9)?'next':_0x2e2036(0x1ad),_0xced8e4=NPM_REGISTRY_BASE+'/'+_0xde4b9a;return new Promise((_0x2a563d,_0x4ab03b)=>{const _0x406826=_0x2e2036,_0x2d8117=get(_0xced8e4,{'timeout':TIMEOUT_MS},_0x5342b7=>{const _0x408214=a246_0x5f27;if(_0x5342b7[_0x408214(0x1b2)]!==0xc8){clearTimeout(_0x35b4f2),_0x4ab03b(new Error('HTTP\x20'+_0x5342b7['statusCode']));return;}let _0xb4e29b='';_0x5342b7['on'](_0x408214(0x1ae),_0x122741=>{_0xb4e29b+=_0x122741;}),_0x5342b7['on'](_0x408214(0x1af),()=>{const _0x24a505=_0x408214;clearTimeout(_0x35b4f2);try{const _0x17f18b=JSON['parse'](_0xb4e29b);if(!valid(_0x17f18b[_0x24a505(0x1c0)])){_0x4ab03b(new Error(_0x24a505(0x1aa)));return;}_0x2a563d(_0x17f18b[_0x24a505(0x1c0)]);}catch(_0x192084){_0x4ab03b(_0x192084);}});})['on'](_0x406826(0x1a1),_0x2d04f6=>{clearTimeout(_0x35b4f2),_0x4ab03b(_0x2d04f6);}),_0x35b4f2=setTimeout(()=>{const _0x21e676=_0x406826;_0x2d8117[_0x21e676(0x1a7)](),_0x4ab03b(new Error(_0x21e676(0x19b)));},TIMEOUT_MS);_0x3ee793&&(_0x2d8117['on'](_0x406826(0x1c1),_0x949bcf=>{_0x949bcf['unref']();}),_0x35b4f2[_0x406826(0x1c9)]());});}export async function checkForUpdate(_0x20b9a9,_0x374a8a='stable'){const _0x57f57b=a246_0x3a59c1;try{const _0x1de022=readCache(_0x374a8a);if(isCacheValid(_0x1de022)){const _0x29272b=gt(_0x1de022[_0x57f57b(0x1bf)],_0x20b9a9);return{'updateAvailable':_0x29272b,'currentVersion':_0x20b9a9,'latestVersion':_0x1de022[_0x57f57b(0x1bf)],'channel':_0x374a8a};}const _0x5cc423=await fetchLatestVersion(_0x374a8a,{'background':!![]});writeCache(_0x5cc423,_0x374a8a);const _0x351040=gt(_0x5cc423,_0x20b9a9);return{'updateAvailable':_0x351040,'currentVersion':_0x20b9a9,'latestVersion':_0x5cc423,'channel':_0x374a8a};}catch{return null;}}export function displayUpdateNotification(_0x21b0f8){const _0x3fe1c8=a246_0x3a59c1;if(!_0x21b0f8[_0x3fe1c8(0x1b8)])return;const _0x1bb74d=_0x21b0f8[_0x3fe1c8(0x1a5)]==='next'?_0x3fe1c8(0x1bc):_0x3fe1c8(0x1bb),_0x3e48bc=process['stderr'][_0x3fe1c8(0x1b3)]&&!process.env.NO_COLOR,_0x33069f=_0x3e48bc?a246_0x42338d['gray']('→'):'→',_0x501eac=_0x3e48bc?a246_0x42338d[_0x3fe1c8(0x19f)](_0x21b0f8[_0x3fe1c8(0x1b0)]):_0x21b0f8[_0x3fe1c8(0x1b0)],_0x27099f=_0x3e48bc?a246_0x42338d[_0x3fe1c8(0x19d)](_0x21b0f8[_0x3fe1c8(0x1bf)]):_0x21b0f8[_0x3fe1c8(0x1bf)],_0x19402d=_0x3e48bc?a246_0x42338d['cyan'](_0x1bb74d):_0x1bb74d,_0x3b857b=_0x3e48bc?'\x0a'+a246_0x42338d[_0x3fe1c8(0x1c3)](_0x3fe1c8(0x1a8))+'\x20'+_0x501eac+'\x20'+_0x33069f+'\x20'+_0x27099f+'\x0a'+a246_0x42338d['dim'](_0x3fe1c8(0x1a4))+'\x20'+_0x19402d+'\x0a':_0x3fe1c8(0x1c4)+_0x501eac+'\x20'+_0x33069f+'\x20'+_0x27099f+_0x3fe1c8(0x1c2)+_0x19402d+'\x0a';process['stderr'][_0x3fe1c8(0x1a0)](_0x3b857b);}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treasuredata/tdx",
|
|
3
|
-
"version": "2026.7.
|
|
3
|
+
"version": "2026.7.4",
|
|
4
4
|
"description": "AI-native CLI for Treasure AI - optimized for both human engineers and AI coding assistants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@types/json-bigint": "^1.0.4",
|
|
81
81
|
"chalk": "^5.3.0",
|
|
82
82
|
"cli-table3": "^0.6.5",
|
|
83
|
-
"commander": "^
|
|
83
|
+
"commander": "^15.0.0",
|
|
84
84
|
"dotenv": "^17.2.3",
|
|
85
85
|
"fastify": "^5.2.0",
|
|
86
86
|
"ignore": "^7.0.5",
|
|
@@ -89,23 +89,23 @@
|
|
|
89
89
|
"prompts": "^2.4.2",
|
|
90
90
|
"semver": "^7.8.1",
|
|
91
91
|
"string-width": "^8.1.0",
|
|
92
|
-
"tar": "^7.5.
|
|
92
|
+
"tar": "^7.5.21",
|
|
93
93
|
"undici": "^8.0.0",
|
|
94
94
|
"yaml": "^2.8.2",
|
|
95
95
|
"zod": "^4.3.5"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@evilmartians/lefthook": "^2.1.8",
|
|
99
|
-
"@types/node": "^
|
|
99
|
+
"@types/node": "^26.1.2",
|
|
100
100
|
"@types/prompts": "^2.4.9",
|
|
101
101
|
"@types/semver": "^7.7.1",
|
|
102
102
|
"@typescript-eslint/eslint-plugin": "^8.59.4",
|
|
103
103
|
"@typescript-eslint/parser": "^8.60.0",
|
|
104
104
|
"@vitest/coverage-v8": "^4.0.6",
|
|
105
105
|
"eslint": "^10.4.0",
|
|
106
|
-
"execa": "^
|
|
106
|
+
"execa": "^10.0.0",
|
|
107
107
|
"javascript-obfuscator": "^5.4.3",
|
|
108
|
-
"prettier": "^3.
|
|
108
|
+
"prettier": "^3.9.6",
|
|
109
109
|
"tsx": "^4.22.3",
|
|
110
110
|
"typedoc": "^0.28.14",
|
|
111
111
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
@@ -115,14 +115,22 @@
|
|
|
115
115
|
},
|
|
116
116
|
"pnpm": {
|
|
117
117
|
"overrides": {
|
|
118
|
-
"dompurify": "^3.
|
|
118
|
+
"dompurify": "^3.4.12",
|
|
119
119
|
"vite-plugin-singlefile>vite": "^8.0.8",
|
|
120
120
|
"vitepress-plugin-mermaid>vitepress": "2.0.0-alpha.17",
|
|
121
121
|
"qs@>=6.11.1 <6.15.2": "^6.15.2",
|
|
122
|
-
"fast-uri@<3.1.2": "^3.1.2",
|
|
123
|
-
"hono@<4.12.18": "^4.12.18",
|
|
124
122
|
"ip-address@<=10.1.0": "^10.1.1",
|
|
125
|
-
"@xmldom/xmldom@<0.8.13": "^0.8.13"
|
|
123
|
+
"@xmldom/xmldom@<0.8.13": "^0.8.13",
|
|
124
|
+
"fast-uri@<3.1.4": "^3.1.4",
|
|
125
|
+
"hono@<4.12.27": "^4.12.27",
|
|
126
|
+
"@hono/node-server@<2.0.5": "^2.0.5",
|
|
127
|
+
"js-yaml@>=4.0.0 <4.3.0": "^4.3.0",
|
|
128
|
+
"tar@<7.5.21": "^7.5.21",
|
|
129
|
+
"body-parser@>=2.0.0 <2.3.0": "^2.3.0",
|
|
130
|
+
"find-my-way@<9.7.0": "^9.7.0",
|
|
131
|
+
"@babel/core@<=7.29.0": "^7.29.6",
|
|
132
|
+
"app-builder-lib@<26.15.0": "^26.15.0",
|
|
133
|
+
"builder-util-runtime@<9.7.0": "^9.7.0"
|
|
126
134
|
},
|
|
127
135
|
"onlyBuiltDependencies": [
|
|
128
136
|
"@evilmartians/lefthook",
|