@treasuredata/tdx 2026.5.1 → 2026.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.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/table-deleted.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/tools/work-create-item.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/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/llm/user-settings.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/deleted-table-validation.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/segment-validator.js.map +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.d.ts +1 -1
- package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment/yaml-validator.js.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/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/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
|
-
const a195_0x4f9442=a195_0x303d;function a195_0x3eb4(){const _0x326665=['tmpdir','bind','clearSchedule','zlib','message','preparePushProject','Project\x20directory\x20not\x20found:\x20','sessionUuid','rawCount','applyPullProject','Kill\x20request\x20accepted','fullName','retryAttemptName','2AvXprb','172410FHyYcz','project','finishedAt','unlink','Workflow\x20must\x20be\x20specified\x20as\x20\x22project.workflow\x22\x20format:\x20','.\x20Expected\x20\x22project.workflow\x22','from','includeRetried','resumeFrom','isDirectory','sessionId','latest','client','WORKFLOW_PROJECT_NOT_FOUND','getAttemptTasks','push','upstreams','delete','basename','432808anFAoM','done','Invalid\x20workflow\x20format:\x20','listSecrets','success','clearScheduleAll','updatedAt','deleteProject','access','prepareCloneProject','tdx-workflow-push-','getWorkflow','force','projects','arrayBuffer','now','sessionTime','No\x20','scheduleFrom','data','storeParams','WORKFLOW_SECRET_SET_FAILED','index','find','disableSchedule','executePushProject','direct','21321927VvYqZH','substring','test','toString','rejected','projectName','969027RRvjsU','Failed\x20to\x20download\x20log\x20file:\x20','cancelRequested','workflows','isGroup','fromTime','indexOf','fromTask','state','listProjects','sessions','attempt','deleteSecret','params','enableSchedule','utf-8','mkdir','readdir','startAttempt','listLogFiles','extract','length','9712236tYAxvR','status','lastId','tdx-workflow-','75FTEfSO','min','Project\x20not\x20found:\x20','parseWorkflowId','listSessions','attempts','getAttempt','workflowName','gunzip','workflow','retryParams','skipValidation','tar','listWorkflows','revision','logFiles','lastAttempt','limit','2748403UcUAoQ','error','listAttempts','1587752sXQmVR','\x20workflow\x20files\x20found\x20in\x20project\x20directory','path','retryAttempt','resolveProjectId','filter','join','.tar.gz','toISOString','retrySession','config','getProject','createdAt','executeCloneProject','downloadProjectArchive','name','setSecret','map','INVALID_ARGUMENT','isFile','getProjectWorkflow','logs','Failed\x20to\x20set\x20secret','run','listSchedules','keys','startedAt','kill','last_id'];a195_0x3eb4=function(){return _0x326665;};return a195_0x3eb4();}(function(_0x698c48,_0x5ed073){const _0x4186bf=a195_0x303d,_0x501884=_0x698c48();while(!![]){try{const _0x3e4513=-parseInt(_0x4186bf(0x10f))/0x1+-parseInt(_0x4186bf(0x10e))/0x2*(parseInt(_0x4186bf(0x143))/0x3)+parseInt(_0x4186bf(0x122))/0x4*(parseInt(_0x4186bf(0xcf))/0x5)+parseInt(_0x4186bf(0xcb))/0x6+parseInt(_0x4186bf(0xe1))/0x7+parseInt(_0x4186bf(0xe4))/0x8+-parseInt(_0x4186bf(0x13d))/0x9;if(_0x3e4513===_0x5ed073)break;else _0x501884['push'](_0x501884['shift']());}catch(_0x386bbe){_0x501884['push'](_0x501884['shift']());}}}(a195_0x3eb4,0xec678));import{WorkflowApiClient}from'../client/workflow-client.js';import{SDKError,ErrorCode}from'../errors.js';import{MAX_PAGINATION_LIMIT}from'../util/paginate.js';async function paginateResults(_0x50bd30,_0xdbfe5a,_0x289404=0x64){const _0x460b01=a195_0x303d,_0xdf4511=Math[_0x460b01(0xd0)](_0xdbfe5a,MAX_PAGINATION_LIMIT),_0x199941=[];let _0x368476;while(_0x199941['length']<_0xdf4511){const _0x226a42=await _0x50bd30(_0x289404,_0x368476),_0x20c295=_0x226a42[_0x460b01(0x109)]??_0x226a42[_0x460b01(0x135)]['length'];if(_0x20c295===0x0)break;_0x199941[_0x460b01(0x11e)](..._0x226a42[_0x460b01(0x135)]);if(!_0x226a42[_0x460b01(0xcd)]||_0x20c295<_0x289404)break;_0x368476=_0x226a42[_0x460b01(0xcd)];}return _0x199941['slice'](0x0,_0xdf4511);}import{shouldIncludeInArchive,WORKFLOW_FILE_EXTENSION}from'./workflow-utils.js';import{pullWorkflow,applyPullResult}from'./pull-workflow.js';import{preparePushWorkflow,executePushWorkflow}from'./push-workflow.js';import{prepareCloneWorkflow,executeCloneWorkflow}from'./clone-workflow.js';function a195_0x303d(_0x2cfc91,_0xd54396){_0x2cfc91=_0x2cfc91-0xc6;const _0x3eb4fb=a195_0x3eb4();let _0x303df1=_0x3eb4fb[_0x2cfc91];return _0x303df1;}export class WorkflowSDK{static ['NUMERIC_ID_PATTERN']=/^\d+$/;[a195_0x4f9442(0x11b)];constructor(_0x3e7cfd){const _0x1a0c39=a195_0x4f9442;this[_0x1a0c39(0x11b)]=new WorkflowApiClient(_0x3e7cfd);}async[a195_0x4f9442(0xe8)](_0x48df34){const _0x4c7304=a195_0x4f9442;if(WorkflowSDK['NUMERIC_ID_PATTERN'][_0x4c7304(0x13f)](_0x48df34)){const _0x370274=await this[_0x4c7304(0x11b)][_0x4c7304(0xef)](_0x48df34);return{'id':_0x370274['id'],'name':_0x370274['name']};}const _0x397dc4=await this[_0x4c7304(0x11b)]['listProjects']({'name_pattern':_0x48df34}),_0x3f9371=_0x397dc4[_0x4c7304(0x135)]['find'](_0x388e9c=>_0x388e9c['name']===_0x48df34);if(!_0x3f9371)throw new SDKError(ErrorCode[_0x4c7304(0x11c)],_0x4c7304(0xd1)+_0x48df34);return{'id':_0x3f9371['id'],'name':_0x3f9371[_0x4c7304(0xf3)]};}async[a195_0x4f9442(0x12f)](_0x125935,_0x3689bc){const _0x5c12c9=a195_0x4f9442,_0x49ec6d=_0x3689bc?.[_0x5c12c9(0xe0)]||MAX_PAGINATION_LIMIT,_0x5e40c4=await paginateResults((_0x5bd599,_0x52888f)=>this[_0x5c12c9(0x11b)][_0x5c12c9(0x14c)]({'name_pattern':_0x125935,'limit':_0x5bd599,'last_id':_0x52888f??_0x3689bc?.[_0x5c12c9(0x100)]}),_0x49ec6d);return _0x5e40c4[_0x5c12c9(0xf5)](_0x5511f7=>({..._0x5511f7,'project_id':_0x5511f7['id'],'project_name':_0x5511f7['name']}));}async[a195_0x4f9442(0x146)](_0x5ce9db,_0x2c4d3c){const _0x32b20c=a195_0x4f9442,_0x2efc7b=_0x2c4d3c?.[_0x32b20c(0xe0)]||MAX_PAGINATION_LIMIT,_0x3f3fc1=await paginateResults((_0x22ad90,_0x57ce4b)=>this[_0x32b20c(0x11b)][_0x32b20c(0xdc)]({'project_name':_0x5ce9db,'limit':_0x22ad90,'last_id':_0x57ce4b??_0x2c4d3c?.['last_id']}),_0x2efc7b);return _0x3f3fc1[_0x32b20c(0xf5)](_0x3197d9=>({'project_id':_0x3197d9[_0x32b20c(0x110)]?.['id'],'project_name':_0x3197d9[_0x32b20c(0x110)]?.[_0x32b20c(0xf3)],'workflow_id':_0x3197d9['id'],'workflow_name':_0x3197d9[_0x32b20c(0xf3)],'revision':_0x3197d9['revision'],'timezone':_0x3197d9['timezone'],'config':_0x3197d9[_0x32b20c(0xee)],'id':_0x3197d9['id'],'name':_0x3197d9[_0x32b20c(0xf3)],'project':_0x3197d9[_0x32b20c(0x110)]}));}async[a195_0x4f9442(0x14d)](_0x3dd2e4){const _0x43ed6d=a195_0x4f9442;let _0xc8ea6d;if(_0x3dd2e4?.[_0x43ed6d(0x142)]){let _0x3367f9,_0x589a8e=![];while(!_0x589a8e){const _0x5eb2d2=await this[_0x43ed6d(0x11b)][_0x43ed6d(0x14c)]({'limit':0x64,'last_id':_0x3367f9}),_0xe2937b=_0x5eb2d2[_0x43ed6d(0x135)][_0x43ed6d(0x139)](_0x56ec84=>_0x56ec84['name']===_0x3dd2e4[_0x43ed6d(0x142)]);if(_0xe2937b){_0xc8ea6d=_0xe2937b['id'],_0x589a8e=!![];break;}if(!_0x5eb2d2[_0x43ed6d(0xcd)]||_0x5eb2d2[_0x43ed6d(0x135)][_0x43ed6d(0xca)]===0x0)break;_0x3367f9=_0x5eb2d2[_0x43ed6d(0xcd)];}if(!_0xc8ea6d)throw new SDKError(ErrorCode['WORKFLOW_PROJECT_NOT_FOUND'],_0x43ed6d(0xd1)+_0x3dd2e4['projectName']);}const _0x37b1c3=_0x3dd2e4?.[_0x43ed6d(0xe0)]||0x64,_0x15a12e=await paginateResults((_0x5f30d5,_0x5cd698)=>this[_0x43ed6d(0x11b)][_0x43ed6d(0xd3)]({'project_id':_0xc8ea6d,'project_name':_0x3dd2e4?.[_0x43ed6d(0x142)],'workflow_name':_0x3dd2e4?.[_0x43ed6d(0xd6)],'status':_0x3dd2e4?.[_0x43ed6d(0xcc)],'from_time':_0x3dd2e4?.[_0x43ed6d(0x148)],'to_time':_0x3dd2e4?.['toTime'],'limit':_0x5f30d5,'last_id':_0x5cd698??_0x3dd2e4?.[_0x43ed6d(0x100)]}),_0x37b1c3);return _0x15a12e[_0x43ed6d(0xf5)](_0x416359=>({'project_id':_0x416359['project']?.['id'],'project_name':_0x416359[_0x43ed6d(0x110)]?.['name'],'workflow_id':_0x416359[_0x43ed6d(0xd8)]?.['id'],'workflow_name':_0x416359[_0x43ed6d(0xd8)]?.[_0x43ed6d(0xf3)],'session_id':_0x416359['id'],'sessionUuid':_0x416359[_0x43ed6d(0x108)],'sessionTime':_0x416359[_0x43ed6d(0x132)],'lastAttempt':_0x416359[_0x43ed6d(0xdf)],'id':_0x416359['id'],'project':_0x416359[_0x43ed6d(0x110)],'workflow':_0x416359[_0x43ed6d(0xd8)]}));}async[a195_0x4f9442(0xd4)](_0x15a200){const _0x247e38=a195_0x4f9442,_0x29754a=_0x15a200?.[_0x247e38(0xe0)]||0x64,_0x46c05c=await paginateResults((_0x1ae6d7,_0x38f4b4)=>this[_0x247e38(0x11b)][_0x247e38(0xe3)]({'project_name':_0x15a200?.[_0x247e38(0x142)],'workflow_name':_0x15a200?.[_0x247e38(0xd6)],'include_retried':_0x15a200?.[_0x247e38(0x116)],'limit':_0x1ae6d7,'last_id':_0x38f4b4??_0x15a200?.[_0x247e38(0x100)]}),_0x29754a);return _0x46c05c[_0x247e38(0xf5)](_0x4841b7=>({'project_id':_0x4841b7[_0x247e38(0x110)]?.['id'],'project_name':_0x4841b7[_0x247e38(0x110)]?.[_0x247e38(0xf3)],'workflow_id':_0x4841b7[_0x247e38(0xd8)]?.['id'],'workflow_name':_0x4841b7[_0x247e38(0xd8)]?.[_0x247e38(0xf3)],'session_id':_0x4841b7[_0x247e38(0x119)],'sessionUuid':_0x4841b7['sessionUuid'],'sessionTime':_0x4841b7[_0x247e38(0x132)],'attempt_id':_0x4841b7['id'],'attempt_index':_0x4841b7['index'],'retryAttemptName':_0x4841b7[_0x247e38(0x10d)],'done':_0x4841b7[_0x247e38(0x123)],'success':_0x4841b7[_0x247e38(0x126)],'cancelRequested':_0x4841b7[_0x247e38(0x145)],'params':_0x4841b7[_0x247e38(0x150)],'createdAt':_0x4841b7[_0x247e38(0xf0)],'finishedAt':_0x4841b7[_0x247e38(0x111)],'id':_0x4841b7['id'],'index':_0x4841b7[_0x247e38(0x138)],'project':_0x4841b7['project'],'workflow':_0x4841b7[_0x247e38(0xd8)]}));}async[a195_0x4f9442(0x14e)](_0xee99ff){const _0x44fe04=a195_0x4f9442,_0x204f5b=await this[_0x44fe04(0x11b)][_0x44fe04(0xd5)](_0xee99ff);return _0x204f5b;}async['tasks'](_0x35aeca,_0x1ed75a=![]){const _0x229305=a195_0x4f9442,_0x495377=await this[_0x229305(0x11b)][_0x229305(0x11d)](_0x35aeca,_0x1ed75a);return _0x495377[_0x229305(0xf5)](_0x4863e0=>({'task_id':_0x4863e0['id'],'task_name':_0x4863e0[_0x229305(0x10c)],'parentId':_0x4863e0['parentId'],'config':_0x4863e0[_0x229305(0xee)],'upstreams':_0x4863e0[_0x229305(0x11f)],'state':_0x4863e0[_0x229305(0x14b)],'exportParams':_0x4863e0['exportParams'],'storeParams':_0x4863e0[_0x229305(0x136)],'stateParams':_0x4863e0['stateParams'],'updatedAt':_0x4863e0[_0x229305(0x128)],'retryAt':_0x4863e0['retryAt'],'startedAt':_0x4863e0[_0x229305(0xfe)],'error':_0x4863e0[_0x229305(0xe2)],'isGroup':_0x4863e0[_0x229305(0x147)],'id':_0x4863e0['id'],'fullName':_0x4863e0[_0x229305(0x10c)]}));}async[a195_0x4f9442(0xde)](_0x50b18f,_0x1fb8ab){const _0x3bb26d=a195_0x4f9442;return await this[_0x3bb26d(0x11b)][_0x3bb26d(0xc8)](_0x50b18f,_0x1fb8ab);}async[a195_0x4f9442(0xf9)](_0x512d72,_0x4d7c47){const _0x35ade5=a195_0x4f9442,_0x18d5ba=await import(_0x35ade5(0x104)),{promisify:_0x50cb1b}=await import('util'),_0x497377=_0x50cb1b(_0x18d5ba[_0x35ade5(0xd7)]),_0x347b4b=await this[_0x35ade5(0x11b)]['listLogFiles'](_0x512d72,_0x4d7c47);if(_0x347b4b[_0x35ade5(0xca)]===0x0)return'';const _0x53f45b=[];for(const _0x23e44c of _0x347b4b){if(!_0x23e44c[_0x35ade5(0x13c)])continue;const _0x979140=await fetch(_0x23e44c[_0x35ade5(0x13c)]);if(!_0x979140['ok'])throw new Error(_0x35ade5(0x144)+_0x979140['status']);const _0x4dd0e3=Buffer[_0x35ade5(0x115)](await _0x979140[_0x35ade5(0x130)]()),_0x1da5a7=await _0x497377(_0x4dd0e3);_0x53f45b['push'](_0x1da5a7[_0x35ade5(0x140)](_0x35ade5(0x152)));}return _0x53f45b[_0x35ade5(0xea)]('\x0a');}async[a195_0x4f9442(0xff)](_0x3f86ef,_0x508e32){const _0x9c0e55=a195_0x4f9442,_0x540ea7=await this[_0x9c0e55(0x11b)]['killAttempt'](_0x3f86ef,_0x508e32);return _0x540ea7?.[_0x9c0e55(0x105)]??_0x9c0e55(0x10b);}async[a195_0x4f9442(0xed)](_0x5282a4,_0x2356ea){const _0x1661be=a195_0x4f9442,_0x44de21=await this['client']['retrySession'](_0x5282a4,{'from_task':_0x2356ea?.[_0x1661be(0x14a)],'retry_params':_0x2356ea?.[_0x1661be(0xd9)]});return{'attemptId':_0x44de21['id'],'sessionId':_0x44de21[_0x1661be(0x119)]};}async['retryAttempt'](_0x173d9e,_0x125cba){const _0x523c7a=a195_0x4f9442,_0x2c5dc9=await this['client'][_0x523c7a(0xe7)](_0x173d9e,{'resume_from':_0x125cba?.[_0x523c7a(0x117)],'retry_params':_0x125cba?.[_0x523c7a(0xd9)],'force':_0x125cba?.[_0x523c7a(0x12e)]});return{'attemptId':_0x2c5dc9['id'],'sessionId':_0x2c5dc9[_0x523c7a(0x119)]};}['parseWorkflowId'](_0x4741a4){const _0x178940=a195_0x4f9442,_0x49f404=_0x4741a4[_0x178940(0x149)]('.');if(_0x49f404===-0x1)throw new SDKError(ErrorCode[_0x178940(0xf6)],_0x178940(0x113)+_0x4741a4);const _0x24d742=_0x4741a4[_0x178940(0x13e)](0x0,_0x49f404),_0x1c2959=_0x4741a4[_0x178940(0x13e)](_0x49f404+0x1);if(!_0x24d742||!_0x1c2959)throw new SDKError(ErrorCode[_0x178940(0xf6)],_0x178940(0x124)+_0x4741a4+_0x178940(0x114));return{'projectName':_0x24d742,'workflowName':_0x1c2959};}async[a195_0x4f9442(0xfb)](_0x1b88fe,_0x378ab1={},_0x21fb1b){const _0x43a950=a195_0x4f9442,{projectName:_0x64f38b,workflowName:_0x35a32b}=this[_0x43a950(0xd2)](_0x1b88fe),_0x3bf840=_0x21fb1b?.[_0x43a950(0x132)]||new Date()[_0x43a950(0xec)]();return await this[_0x43a950(0x11b)][_0x43a950(0xc7)]({'projectName':_0x64f38b,'workflowName':_0x35a32b,'sessionTime':_0x3bf840,'params':_0x378ab1});}async[a195_0x4f9442(0x12d)](_0x1bee6a){const _0x46efe8=a195_0x4f9442,{projectName:_0x58424d,workflowName:_0x2affeb}=this['parseWorkflowId'](_0x1bee6a),{id:_0x254ebf}=await this[_0x46efe8(0xe8)](_0x58424d);return await this['client'][_0x46efe8(0xf8)](_0x254ebf,_0x2affeb);}async['download'](_0x2bfadb,_0x264aa0,_0xa76d2){const _0x2a4244=a195_0x4f9442,{promises:_0x59317a}=await import('fs'),_0x595476=await import(_0x2a4244(0xe6)),_0x5cea6e=await import('os'),_0x32c7d9=await import(_0x2a4244(0xdb)),{id:_0x7203f6,name:_0x40c626}=await this['resolveProjectId'](_0x2bfadb),_0x4a3ac0=_0x5cea6e[_0x2a4244(0x101)](),_0x1bdb4b=_0x595476['join'](_0x4a3ac0,_0x2a4244(0xce)+_0x7203f6+'-'+Date[_0x2a4244(0x131)]()+_0x2a4244(0xeb));try{await this[_0x2a4244(0x11b)][_0x2a4244(0xf2)](_0x7203f6,_0x1bdb4b,_0xa76d2?.[_0x2a4244(0xdd)]);const _0x1dbbaf=_0x595476[_0x2a4244(0xea)](_0x264aa0,_0x40c626);await _0x59317a[_0x2a4244(0x153)](_0x1dbbaf,{'recursive':!![]}),await _0x32c7d9[_0x2a4244(0xc9)]({'file':_0x1bdb4b,'cwd':_0x1dbbaf,'gzip':!![]});const _0x121bd1=async _0x539fdc=>{const _0x36b4a7=_0x2a4244;let _0x18faa5=0x0;const _0x28e4c5=await _0x59317a[_0x36b4a7(0xc6)](_0x539fdc,{'withFileTypes':!![]});for(const _0x16cf49 of _0x28e4c5){const _0x3ebeef=_0x595476['join'](_0x539fdc,_0x16cf49[_0x36b4a7(0xf3)]);if(_0x16cf49[_0x36b4a7(0xf7)]())_0x18faa5++;else _0x16cf49[_0x36b4a7(0x118)]()&&(_0x18faa5+=await _0x121bd1(_0x3ebeef));}return _0x18faa5;},_0x4c9b23=await _0x121bd1(_0x1dbbaf);return{'projectName':_0x40c626,'revision':_0xa76d2?.[_0x2a4244(0xdd)]||_0x2a4244(0x11a),'filesExtracted':_0x4c9b23};}finally{try{await _0x59317a[_0x2a4244(0x112)](_0x1bdb4b);}catch{}}}async[a195_0x4f9442(0x11e)](_0x2bc82f,_0x480be9){const _0x18f075=a195_0x4f9442,{promises:_0x1a0bb7}=await import('fs'),_0x266d92=await import(_0x18f075(0xe6)),_0x3ab4be=await import(_0x18f075(0xdb)),_0x4f7cbd=_0x480be9?.[_0x18f075(0x142)]||_0x266d92[_0x18f075(0x121)](_0x2bc82f),_0x33d059=_0x480be9?.[_0x18f075(0xdd)]||new Date()[_0x18f075(0xec)]()['replace'](/[:.]/g,'-');try{await _0x1a0bb7[_0x18f075(0x12a)](_0x2bc82f);}catch{throw new Error(_0x18f075(0x107)+_0x2bc82f);}if(!_0x480be9?.[_0x18f075(0xda)]){const _0x4302c8=await _0x1a0bb7[_0x18f075(0xc6)](_0x2bc82f),_0x1275b4=_0x4302c8[_0x18f075(0xe9)](_0x8ec58d=>_0x8ec58d['endsWith'](WORKFLOW_FILE_EXTENSION));if(_0x1275b4[_0x18f075(0xca)]===0x0)throw new Error(_0x18f075(0x133)+WORKFLOW_FILE_EXTENSION+_0x18f075(0xe5));for(const _0x3cf61c of _0x1275b4){const _0x20758a=_0x266d92[_0x18f075(0xea)](_0x2bc82f,_0x3cf61c);try{await _0x1a0bb7[_0x18f075(0x12a)](_0x20758a);}catch{throw new Error('Cannot\x20read\x20workflow\x20file:\x20'+_0x3cf61c);}}}const _0x2a0806=async(_0x27080f,_0x2b5215='')=>{const _0x34ae39=_0x18f075,_0x64d9e4=await _0x1a0bb7['readdir'](_0x27080f,{'withFileTypes':!![]}),_0x4f9bbb=[];for(const _0x45fcdd of _0x64d9e4){const _0x556fda=_0x266d92[_0x34ae39(0xea)](_0x2b5215,_0x45fcdd[_0x34ae39(0xf3)]),_0x5414b9=_0x266d92[_0x34ae39(0xea)](_0x27080f,_0x45fcdd[_0x34ae39(0xf3)]);if(!shouldIncludeInArchive(_0x45fcdd['name']))continue;_0x45fcdd[_0x34ae39(0x118)]()?_0x4f9bbb[_0x34ae39(0x11e)](...await _0x2a0806(_0x5414b9,_0x556fda)):_0x4f9bbb[_0x34ae39(0x11e)](_0x556fda);}return _0x4f9bbb;},_0x25255d=await _0x2a0806(_0x2bc82f),_0x107a4f=await import('os'),_0x56a6c8=_0x107a4f[_0x18f075(0x101)](),_0x5c89f8=_0x266d92[_0x18f075(0xea)](_0x56a6c8,_0x18f075(0x12c)+Date[_0x18f075(0x131)]()+_0x18f075(0xeb));try{await _0x3ab4be['create']({'file':_0x5c89f8,'gzip':!![],'cwd':_0x2bc82f,'portable':!![]},_0x25255d);const _0xbbb719=await this[_0x18f075(0x11b)]['uploadProjectArchive'](_0x4f7cbd,_0x33d059,_0x5c89f8,{'scheduleFrom':_0x480be9?.[_0x18f075(0x134)],'clearSchedule':_0x480be9?.[_0x18f075(0x103)],'clearScheduleAll':_0x480be9?.[_0x18f075(0x127)]});return{'projectId':_0xbbb719['id'],'projectName':_0xbbb719[_0x18f075(0xf3)],'revision':_0xbbb719[_0x18f075(0xdd)]};}finally{try{await _0x1a0bb7[_0x18f075(0x112)](_0x5c89f8);}catch{}}}async[a195_0x4f9442(0x120)](_0x46a801){const _0x5f58d5=a195_0x4f9442,{id:_0x15b3d0}=await this[_0x5f58d5(0xe8)](_0x46a801),_0x18d5d5=await this[_0x5f58d5(0x11b)][_0x5f58d5(0x129)](_0x15b3d0);return{'projectId':_0x18d5d5['id'],'projectName':_0x18d5d5[_0x5f58d5(0xf3)]};}async[a195_0x4f9442(0x125)](_0x1eb4ba){const _0x425135=a195_0x4f9442,{id:_0x437d9b,name:_0x342100}=await this[_0x425135(0xe8)](_0x1eb4ba),_0x55c2b4=await this[_0x425135(0x11b)][_0x425135(0x125)](_0x437d9b);return{'projectName':_0x342100,'secrets':_0x55c2b4};}async['setSecret'](_0x3e61a7,_0x20035c,_0x3e176f){const _0x1da353=a195_0x4f9442,{id:_0x4be9aa,name:_0x50ff09}=await this[_0x1da353(0xe8)](_0x3e61a7);return await this[_0x1da353(0x11b)]['setSecret'](_0x4be9aa,_0x20035c,_0x3e176f),{'projectName':_0x50ff09,'key':_0x20035c};}async['setSecrets'](_0xdc5ef9,_0x18b5fd){const _0x27fdc3=a195_0x4f9442,{id:_0x47bd6e,name:_0x592876}=await this[_0x27fdc3(0xe8)](_0xdc5ef9),_0x5a3534=Object[_0x27fdc3(0xfd)](_0x18b5fd),_0x280156=await Promise['allSettled'](_0x5a3534['map'](_0x36e41c=>this[_0x27fdc3(0x11b)][_0x27fdc3(0xf4)](_0x47bd6e,_0x36e41c,_0x18b5fd[_0x36e41c]))),_0xcd8a54=_0x280156[_0x27fdc3(0xf5)]((_0x1957f5,_0x1abb90)=>_0x1957f5[_0x27fdc3(0xcc)]===_0x27fdc3(0x141)?_0x5a3534[_0x1abb90]:null)[_0x27fdc3(0xe9)](_0x578f00=>_0x578f00!==null);if(_0xcd8a54[_0x27fdc3(0xca)]>0x0)throw new SDKError(ErrorCode[_0x27fdc3(0x137)],_0x27fdc3(0xfa)+(_0xcd8a54[_0x27fdc3(0xca)]>0x1?'s':'')+':\x20'+_0xcd8a54[_0x27fdc3(0xea)](',\x20'));return{'projectName':_0x592876,'keys':_0x5a3534};}async[a195_0x4f9442(0x14f)](_0x30645e,_0xb880c9){const _0x25de37=a195_0x4f9442,{id:_0x5e735d,name:_0x825e6b}=await this[_0x25de37(0xe8)](_0x30645e);return await this[_0x25de37(0x11b)][_0x25de37(0x14f)](_0x5e735d,_0xb880c9),{'projectName':_0x825e6b,'key':_0xb880c9};}async['pullProject'](_0x51472b,_0x4e7439){const _0x5194be=a195_0x4f9442;return pullWorkflow({'client':this[_0x5194be(0x11b)],'resolveProjectId':this[_0x5194be(0xe8)][_0x5194be(0x102)](this)},_0x51472b,_0x4e7439);}async[a195_0x4f9442(0x10a)](_0x11b7f3,_0x3d5baf){const _0x3081da=a195_0x4f9442;return applyPullResult({'client':this[_0x3081da(0x11b)],'resolveProjectId':this[_0x3081da(0xe8)]['bind'](this)},_0x11b7f3,_0x3d5baf);}async[a195_0x4f9442(0x106)](_0x261050){const _0x4b0979=a195_0x4f9442;return preparePushWorkflow({'client':this['client'],'resolveProjectId':this['resolveProjectId'][_0x4b0979(0x102)](this)},_0x261050);}async[a195_0x4f9442(0x13b)](_0x345df9){const _0x250da1=a195_0x4f9442;return executePushWorkflow({'client':this[_0x250da1(0x11b)],'resolveProjectId':this[_0x250da1(0xe8)][_0x250da1(0x102)](this)},_0x345df9);}async[a195_0x4f9442(0x12b)](_0x4710f0,_0x171a3a,_0x201f74){return prepareCloneWorkflow({'client':this['client']},_0x4710f0,_0x171a3a,_0x201f74);}async[a195_0x4f9442(0xf1)](_0x2882be){const _0x482784=a195_0x4f9442;return executeCloneWorkflow({'client':this[_0x482784(0x11b)]},_0x2882be);}async[a195_0x4f9442(0xfc)](){const _0x1427ea=a195_0x4f9442;return await this['client'][_0x1427ea(0xfc)]();}async[a195_0x4f9442(0x151)](_0x225d32,_0x4566d9){const _0x4399de=a195_0x4f9442;return await this[_0x4399de(0x11b)][_0x4399de(0x151)](_0x225d32,_0x4566d9);}async['disableSchedule'](_0x5da8fc){const _0x1aa6da=a195_0x4f9442;return await this[_0x1aa6da(0x11b)][_0x1aa6da(0x13a)](_0x5da8fc);}}
|
|
1
|
+
const a195_0x7bbdf0=a195_0x12ac;function a195_0x37d5(){const _0x4d8b2d=['toTime','basename','error','Workflow\x20must\x20be\x20specified\x20as\x20\x22project.workflow\x22\x20format:\x20','415460lSfwNV','listSecrets','length','8KSvtFP','Project\x20not\x20found:\x20','includeRetried','delete','workflow','Failed\x20to\x20download\x20log\x20file:\x20','394416AiYSCw','mkdir','attempts','WORKFLOW_PROJECT_NOT_FOUND','force','replace','timezone','Kill\x20request\x20accepted','path','5879496lXzhTX','state','exportParams','\x20workflow\x20files\x20found\x20in\x20project\x20directory','clearSchedule','lastId','workflows','retryParams','run','push','name','client','extract','tar','logFiles','slice','parseWorkflowId','keys','filter','allSettled','getProjectWorkflow','getAttempt','retryAttempt','isGroup','12dNtaZt','uploadProjectArchive','WORKFLOW_SECRET_SET_FAILED','clearScheduleAll','zlib','getProject','isDirectory','toISOString','projectName','done','deleteSecret','retrySession','finishedAt','kill','getWorkflow','setSecrets','setSecret','join','33mNBYQS','.\x20Expected\x20\x22project.workflow\x22','last_id','upstreams','tmpdir','now','revision','test','retryAt','fromTime','INVALID_ARGUMENT','status','tasks','from','188464gBQeHo','preparePushProject','latest','listSchedules','min','deleteProject','access','substring','listAttempts','.tar.gz','Failed\x20to\x20set\x20secret','executeCloneProject','1796990ujIQac','readdir','attempt','arrayBuffer','map','rawCount','limit','6132VtdSgB','tdx-workflow-','bind','enableSchedule','project','direct','No\x20','disableSchedule','NUMERIC_ID_PATTERN','pullProject','sessionId','unlink','sessionUuid','listProjects','158560nPQSPT','listLogFiles','resolveProjectId','createdAt','stateParams','skipValidation','getAttemptTasks','tdx-workflow-push-','listSessions','prepareCloneProject','isFile','data','sessionTime','updatedAt','killAttempt','fullName','parentId','startAttempt','15RQRJlW','create','workflowName','112kMPazr','retryAttemptName'];a195_0x37d5=function(){return _0x4d8b2d;};return a195_0x37d5();}(function(_0x5e56da,_0x2c1388){const _0x59148f=a195_0x12ac,_0x14ec43=_0x5e56da();while(!![]){try{const _0x3107cf=parseInt(_0x59148f(0x1b0))/0x1+parseInt(_0x59148f(0x18f))/0x2*(parseInt(_0x59148f(0x1c2))/0x3)+parseInt(_0x59148f(0x16f))/0x4*(-parseInt(_0x59148f(0x1cb))/0x5)+-parseInt(_0x59148f(0x1a2))/0x6*(parseInt(_0x59148f(0x1c5))/0x7)+parseInt(_0x59148f(0x1ce))/0x8*(-parseInt(_0x59148f(0x14e))/0x9)+parseInt(_0x59148f(0x19b))/0xa*(-parseInt(_0x59148f(0x181))/0xb)+parseInt(_0x59148f(0x157))/0xc;if(_0x3107cf===_0x2c1388)break;else _0x14ec43['push'](_0x14ec43['shift']());}catch(_0x2dd636){_0x14ec43['push'](_0x14ec43['shift']());}}}(a195_0x37d5,0x42319));import{WorkflowApiClient}from'../client/workflow-client.js';import{SDKError,ErrorCode}from'../errors.js';import{MAX_PAGINATION_LIMIT}from'../util/paginate.js';async function paginateResults(_0x5bc3c8,_0xeda47f,_0xe08ffd=0x64){const _0x353b34=a195_0x12ac,_0x4ad61b=Math[_0x353b34(0x193)](_0xeda47f,MAX_PAGINATION_LIMIT),_0x826e59=[];let _0x41689a;while(_0x826e59['length']<_0x4ad61b){const _0x1d0bf7=await _0x5bc3c8(_0xe08ffd,_0x41689a),_0x280665=_0x1d0bf7[_0x353b34(0x1a0)]??_0x1d0bf7[_0x353b34(0x1bb)]['length'];if(_0x280665===0x0)break;_0x826e59[_0x353b34(0x160)](..._0x1d0bf7[_0x353b34(0x1bb)]);if(!_0x1d0bf7[_0x353b34(0x15c)]||_0x280665<_0xe08ffd)break;_0x41689a=_0x1d0bf7[_0x353b34(0x15c)];}return _0x826e59[_0x353b34(0x166)](0x0,_0x4ad61b);}import{shouldIncludeInArchive,WORKFLOW_FILE_EXTENSION}from'./workflow-utils.js';import{pullWorkflow,applyPullResult}from'./pull-workflow.js';import{preparePushWorkflow,executePushWorkflow}from'./push-workflow.js';function a195_0x12ac(_0x5154b1,_0x143e02){_0x5154b1=_0x5154b1-0x14a;const _0x37d5cf=a195_0x37d5();let _0x12ac96=_0x37d5cf[_0x5154b1];return _0x12ac96;}import{prepareCloneWorkflow,executeCloneWorkflow}from'./clone-workflow.js';export class WorkflowSDK{static [a195_0x7bbdf0(0x1aa)]=/^\d+$/;['client'];constructor(_0x4c09ed){const _0x4e3c07=a195_0x7bbdf0;this[_0x4e3c07(0x162)]=new WorkflowApiClient(_0x4c09ed);}async[a195_0x7bbdf0(0x1b2)](_0x32d0b2){const _0x1dcf42=a195_0x7bbdf0;if(WorkflowSDK[_0x1dcf42(0x1aa)][_0x1dcf42(0x188)](_0x32d0b2)){const _0x21b5b5=await this[_0x1dcf42(0x162)][_0x1dcf42(0x174)](_0x32d0b2);return{'id':_0x21b5b5['id'],'name':_0x21b5b5[_0x1dcf42(0x161)]};}const _0x5683f4=await this[_0x1dcf42(0x162)][_0x1dcf42(0x1af)]({'name_pattern':_0x32d0b2}),_0x172031=_0x5683f4[_0x1dcf42(0x1bb)]['find'](_0x17969e=>_0x17969e[_0x1dcf42(0x161)]===_0x32d0b2);if(!_0x172031)throw new SDKError(ErrorCode['WORKFLOW_PROJECT_NOT_FOUND'],'Project\x20not\x20found:\x20'+_0x32d0b2);return{'id':_0x172031['id'],'name':_0x172031['name']};}async['projects'](_0x545907,_0x2abc7e){const _0x22ed7e=a195_0x7bbdf0,_0x1fd62c=_0x2abc7e?.['limit']||MAX_PAGINATION_LIMIT,_0x3892e3=await paginateResults((_0x49b6bb,_0x53a18a)=>this['client'][_0x22ed7e(0x1af)]({'name_pattern':_0x545907,'limit':_0x49b6bb,'last_id':_0x53a18a??_0x2abc7e?.[_0x22ed7e(0x183)]}),_0x1fd62c);return _0x3892e3[_0x22ed7e(0x19f)](_0x13bd6e=>({..._0x13bd6e,'project_id':_0x13bd6e['id'],'project_name':_0x13bd6e['name']}));}async[a195_0x7bbdf0(0x15d)](_0x494ce0,_0xa9e11b){const _0x42d069=a195_0x7bbdf0,_0x5a2f88=_0xa9e11b?.[_0x42d069(0x1a1)]||MAX_PAGINATION_LIMIT,_0x46d417=await paginateResults((_0x2f65e7,_0x3f530b)=>this[_0x42d069(0x162)]['listWorkflows']({'project_name':_0x494ce0,'limit':_0x2f65e7,'last_id':_0x3f530b??_0xa9e11b?.[_0x42d069(0x183)]}),_0x5a2f88);return _0x46d417[_0x42d069(0x19f)](_0x6288d6=>({'project_id':_0x6288d6[_0x42d069(0x1a6)]?.['id'],'project_name':_0x6288d6[_0x42d069(0x1a6)]?.['name'],'workflow_id':_0x6288d6['id'],'workflow_name':_0x6288d6[_0x42d069(0x161)],'revision':_0x6288d6['revision'],'timezone':_0x6288d6[_0x42d069(0x154)],'config':_0x6288d6['config'],'id':_0x6288d6['id'],'name':_0x6288d6[_0x42d069(0x161)],'project':_0x6288d6['project']}));}async['sessions'](_0x2b1025){const _0x44706e=a195_0x7bbdf0;let _0x5af236;if(_0x2b1025?.[_0x44706e(0x177)]){let _0x67fd20,_0x2fb73d=![];while(!_0x2fb73d){const _0x399577=await this[_0x44706e(0x162)][_0x44706e(0x1af)]({'limit':0x64,'last_id':_0x67fd20}),_0x438e85=_0x399577[_0x44706e(0x1bb)]['find'](_0x2e8525=>_0x2e8525[_0x44706e(0x161)]===_0x2b1025[_0x44706e(0x177)]);if(_0x438e85){_0x5af236=_0x438e85['id'],_0x2fb73d=!![];break;}if(!_0x399577['lastId']||_0x399577[_0x44706e(0x1bb)][_0x44706e(0x1cd)]===0x0)break;_0x67fd20=_0x399577[_0x44706e(0x15c)];}if(!_0x5af236)throw new SDKError(ErrorCode[_0x44706e(0x151)],_0x44706e(0x1cf)+_0x2b1025[_0x44706e(0x177)]);}const _0x4c4d04=_0x2b1025?.[_0x44706e(0x1a1)]||0x64,_0x1f80b8=await paginateResults((_0x16f9e9,_0x5494c7)=>this[_0x44706e(0x162)][_0x44706e(0x1b8)]({'project_id':_0x5af236,'project_name':_0x2b1025?.[_0x44706e(0x177)],'workflow_name':_0x2b1025?.[_0x44706e(0x1c4)],'status':_0x2b1025?.[_0x44706e(0x18c)],'from_time':_0x2b1025?.[_0x44706e(0x18a)],'to_time':_0x2b1025?.[_0x44706e(0x1c7)],'limit':_0x16f9e9,'last_id':_0x5494c7??_0x2b1025?.[_0x44706e(0x183)]}),_0x4c4d04);return _0x1f80b8['map'](_0x1a72a0=>({'project_id':_0x1a72a0[_0x44706e(0x1a6)]?.['id'],'project_name':_0x1a72a0[_0x44706e(0x1a6)]?.[_0x44706e(0x161)],'workflow_id':_0x1a72a0['workflow']?.['id'],'workflow_name':_0x1a72a0['workflow']?.['name'],'session_id':_0x1a72a0['id'],'sessionUuid':_0x1a72a0[_0x44706e(0x1ae)],'sessionTime':_0x1a72a0[_0x44706e(0x1bc)],'lastAttempt':_0x1a72a0['lastAttempt'],'id':_0x1a72a0['id'],'project':_0x1a72a0[_0x44706e(0x1a6)],'workflow':_0x1a72a0[_0x44706e(0x14c)]}));}async[a195_0x7bbdf0(0x150)](_0x428c0f){const _0xfc0c1f=a195_0x7bbdf0,_0x39c162=_0x428c0f?.['limit']||0x64,_0x3f46fe=await paginateResults((_0x8a0a43,_0x175bbe)=>this['client'][_0xfc0c1f(0x197)]({'project_name':_0x428c0f?.[_0xfc0c1f(0x177)],'workflow_name':_0x428c0f?.[_0xfc0c1f(0x1c4)],'include_retried':_0x428c0f?.[_0xfc0c1f(0x14a)],'limit':_0x8a0a43,'last_id':_0x175bbe??_0x428c0f?.[_0xfc0c1f(0x183)]}),_0x39c162);return _0x3f46fe['map'](_0x167f15=>({'project_id':_0x167f15[_0xfc0c1f(0x1a6)]?.['id'],'project_name':_0x167f15[_0xfc0c1f(0x1a6)]?.['name'],'workflow_id':_0x167f15[_0xfc0c1f(0x14c)]?.['id'],'workflow_name':_0x167f15['workflow']?.[_0xfc0c1f(0x161)],'session_id':_0x167f15[_0xfc0c1f(0x1ac)],'sessionUuid':_0x167f15[_0xfc0c1f(0x1ae)],'sessionTime':_0x167f15[_0xfc0c1f(0x1bc)],'attempt_id':_0x167f15['id'],'attempt_index':_0x167f15['index'],'retryAttemptName':_0x167f15[_0xfc0c1f(0x1c6)],'done':_0x167f15[_0xfc0c1f(0x178)],'success':_0x167f15['success'],'cancelRequested':_0x167f15['cancelRequested'],'params':_0x167f15['params'],'createdAt':_0x167f15[_0xfc0c1f(0x1b3)],'finishedAt':_0x167f15[_0xfc0c1f(0x17b)],'id':_0x167f15['id'],'index':_0x167f15['index'],'project':_0x167f15[_0xfc0c1f(0x1a6)],'workflow':_0x167f15[_0xfc0c1f(0x14c)]}));}async[a195_0x7bbdf0(0x19d)](_0x3dc22d){const _0x3bde1f=a195_0x7bbdf0,_0xa04151=await this[_0x3bde1f(0x162)][_0x3bde1f(0x16c)](_0x3dc22d);return _0xa04151;}async[a195_0x7bbdf0(0x18d)](_0x17c1a6,_0x5d1ae2=![]){const _0x5ad1ba=a195_0x7bbdf0,_0x17f686=await this[_0x5ad1ba(0x162)][_0x5ad1ba(0x1b6)](_0x17c1a6,_0x5d1ae2);return _0x17f686[_0x5ad1ba(0x19f)](_0x531fb2=>({'task_id':_0x531fb2['id'],'task_name':_0x531fb2[_0x5ad1ba(0x1bf)],'parentId':_0x531fb2[_0x5ad1ba(0x1c0)],'config':_0x531fb2['config'],'upstreams':_0x531fb2[_0x5ad1ba(0x184)],'state':_0x531fb2[_0x5ad1ba(0x158)],'exportParams':_0x531fb2[_0x5ad1ba(0x159)],'storeParams':_0x531fb2['storeParams'],'stateParams':_0x531fb2[_0x5ad1ba(0x1b4)],'updatedAt':_0x531fb2[_0x5ad1ba(0x1bd)],'retryAt':_0x531fb2[_0x5ad1ba(0x189)],'startedAt':_0x531fb2['startedAt'],'error':_0x531fb2[_0x5ad1ba(0x1c9)],'isGroup':_0x531fb2[_0x5ad1ba(0x16e)],'id':_0x531fb2['id'],'fullName':_0x531fb2[_0x5ad1ba(0x1bf)]}));}async[a195_0x7bbdf0(0x165)](_0x495b8d,_0x169778){const _0x180387=a195_0x7bbdf0;return await this[_0x180387(0x162)][_0x180387(0x1b1)](_0x495b8d,_0x169778);}async['logs'](_0x397eb9,_0xb65b6b){const _0x154888=a195_0x7bbdf0,_0x5d5af0=await import(_0x154888(0x173)),{promisify:_0x55b391}=await import('util'),_0x298d2d=_0x55b391(_0x5d5af0['gunzip']),_0x40a4e1=await this[_0x154888(0x162)][_0x154888(0x1b1)](_0x397eb9,_0xb65b6b);if(_0x40a4e1[_0x154888(0x1cd)]===0x0)return'';const _0x51b03f=[];for(const _0x433582 of _0x40a4e1){if(!_0x433582[_0x154888(0x1a7)])continue;const _0x26d1cc=await fetch(_0x433582['direct']);if(!_0x26d1cc['ok'])throw new Error(_0x154888(0x14d)+_0x26d1cc[_0x154888(0x18c)]);const _0x404713=Buffer[_0x154888(0x18e)](await _0x26d1cc[_0x154888(0x19e)]()),_0x8ecba4=await _0x298d2d(_0x404713);_0x51b03f[_0x154888(0x160)](_0x8ecba4['toString']('utf-8'));}return _0x51b03f[_0x154888(0x180)]('\x0a');}async[a195_0x7bbdf0(0x17c)](_0xde662,_0x213c37){const _0x2c8e27=a195_0x7bbdf0,_0x15dafe=await this[_0x2c8e27(0x162)][_0x2c8e27(0x1be)](_0xde662,_0x213c37);return _0x15dafe?.['message']??_0x2c8e27(0x155);}async[a195_0x7bbdf0(0x17a)](_0x529060,_0x40e44f){const _0x501730=a195_0x7bbdf0,_0x18902e=await this[_0x501730(0x162)][_0x501730(0x17a)](_0x529060,{'from_task':_0x40e44f?.['fromTask'],'retry_params':_0x40e44f?.[_0x501730(0x15e)]});return{'attemptId':_0x18902e['id'],'sessionId':_0x18902e[_0x501730(0x1ac)]};}async[a195_0x7bbdf0(0x16d)](_0x2670e5,_0x14136b){const _0x250899=a195_0x7bbdf0,_0x5293da=await this[_0x250899(0x162)][_0x250899(0x16d)](_0x2670e5,{'resume_from':_0x14136b?.['resumeFrom'],'retry_params':_0x14136b?.['retryParams'],'force':_0x14136b?.[_0x250899(0x152)]});return{'attemptId':_0x5293da['id'],'sessionId':_0x5293da[_0x250899(0x1ac)]};}[a195_0x7bbdf0(0x167)](_0x40f531){const _0x381516=a195_0x7bbdf0,_0x32cc62=_0x40f531['indexOf']('.');if(_0x32cc62===-0x1)throw new SDKError(ErrorCode[_0x381516(0x18b)],_0x381516(0x1ca)+_0x40f531);const _0x418597=_0x40f531[_0x381516(0x196)](0x0,_0x32cc62),_0x38a6c3=_0x40f531[_0x381516(0x196)](_0x32cc62+0x1);if(!_0x418597||!_0x38a6c3)throw new SDKError(ErrorCode[_0x381516(0x18b)],'Invalid\x20workflow\x20format:\x20'+_0x40f531+_0x381516(0x182));return{'projectName':_0x418597,'workflowName':_0x38a6c3};}async[a195_0x7bbdf0(0x15f)](_0x10eebc,_0x50dd95={},_0x44f856){const _0x3a4f27=a195_0x7bbdf0,{projectName:_0x425587,workflowName:_0x221565}=this[_0x3a4f27(0x167)](_0x10eebc),_0x2a122c=_0x44f856?.[_0x3a4f27(0x1bc)]||new Date()['toISOString']();return await this[_0x3a4f27(0x162)][_0x3a4f27(0x1c1)]({'projectName':_0x425587,'workflowName':_0x221565,'sessionTime':_0x2a122c,'params':_0x50dd95});}async[a195_0x7bbdf0(0x17d)](_0x108e17){const _0x47c2f0=a195_0x7bbdf0,{projectName:_0x231451,workflowName:_0x36707a}=this['parseWorkflowId'](_0x108e17),{id:_0x14cdb8}=await this[_0x47c2f0(0x1b2)](_0x231451);return await this['client'][_0x47c2f0(0x16b)](_0x14cdb8,_0x36707a);}async['download'](_0x3d0c2b,_0x1bf64a,_0x2903a6){const _0x35c885=a195_0x7bbdf0,{promises:_0x21a595}=await import('fs'),_0x1a02cf=await import(_0x35c885(0x156)),_0x4267c6=await import('os'),_0x3b3faa=await import(_0x35c885(0x164)),{id:_0x57352b,name:_0x13a24b}=await this['resolveProjectId'](_0x3d0c2b),_0x459c14=_0x4267c6[_0x35c885(0x185)](),_0x3a77b7=_0x1a02cf[_0x35c885(0x180)](_0x459c14,_0x35c885(0x1a3)+_0x57352b+'-'+Date[_0x35c885(0x186)]()+_0x35c885(0x198));try{await this['client']['downloadProjectArchive'](_0x57352b,_0x3a77b7,_0x2903a6?.[_0x35c885(0x187)]);const _0x9c4ec5=_0x1a02cf['join'](_0x1bf64a,_0x13a24b);await _0x21a595[_0x35c885(0x14f)](_0x9c4ec5,{'recursive':!![]}),await _0x3b3faa[_0x35c885(0x163)]({'file':_0x3a77b7,'cwd':_0x9c4ec5,'gzip':!![]});const _0x484b93=async _0x1f9e28=>{const _0x199799=_0x35c885;let _0x1ecbf4=0x0;const _0x43eee4=await _0x21a595[_0x199799(0x19c)](_0x1f9e28,{'withFileTypes':!![]});for(const _0x119cba of _0x43eee4){const _0x568739=_0x1a02cf[_0x199799(0x180)](_0x1f9e28,_0x119cba['name']);if(_0x119cba[_0x199799(0x1ba)]())_0x1ecbf4++;else _0x119cba[_0x199799(0x175)]()&&(_0x1ecbf4+=await _0x484b93(_0x568739));}return _0x1ecbf4;},_0x1ea17c=await _0x484b93(_0x9c4ec5);return{'projectName':_0x13a24b,'revision':_0x2903a6?.['revision']||_0x35c885(0x191),'filesExtracted':_0x1ea17c};}finally{try{await _0x21a595[_0x35c885(0x1ad)](_0x3a77b7);}catch{}}}async[a195_0x7bbdf0(0x160)](_0x4c524a,_0x56190b){const _0x1eb668=a195_0x7bbdf0,{promises:_0x3a70a4}=await import('fs'),_0x458447=await import(_0x1eb668(0x156)),_0x18cf36=await import(_0x1eb668(0x164)),_0x409808=_0x56190b?.[_0x1eb668(0x177)]||_0x458447[_0x1eb668(0x1c8)](_0x4c524a),_0x576c6a=_0x56190b?.['revision']||new Date()[_0x1eb668(0x176)]()[_0x1eb668(0x153)](/[:.]/g,'-');try{await _0x3a70a4['access'](_0x4c524a);}catch{throw new Error('Project\x20directory\x20not\x20found:\x20'+_0x4c524a);}if(!_0x56190b?.[_0x1eb668(0x1b5)]){const _0x46b096=await _0x3a70a4[_0x1eb668(0x19c)](_0x4c524a),_0x5120d9=_0x46b096[_0x1eb668(0x169)](_0x3120b3=>_0x3120b3['endsWith'](WORKFLOW_FILE_EXTENSION));if(_0x5120d9['length']===0x0)throw new Error(_0x1eb668(0x1a8)+WORKFLOW_FILE_EXTENSION+_0x1eb668(0x15a));for(const _0x273bc4 of _0x5120d9){const _0x4e4ff9=_0x458447[_0x1eb668(0x180)](_0x4c524a,_0x273bc4);try{await _0x3a70a4[_0x1eb668(0x195)](_0x4e4ff9);}catch{throw new Error('Cannot\x20read\x20workflow\x20file:\x20'+_0x273bc4);}}}const _0x297284=async(_0x345ece,_0x49003f='')=>{const _0x19e2dd=_0x1eb668,_0x4d09af=await _0x3a70a4[_0x19e2dd(0x19c)](_0x345ece,{'withFileTypes':!![]}),_0x1546e2=[];for(const _0x8fba25 of _0x4d09af){const _0x5e5d3e=_0x458447[_0x19e2dd(0x180)](_0x49003f,_0x8fba25[_0x19e2dd(0x161)]),_0x28d807=_0x458447[_0x19e2dd(0x180)](_0x345ece,_0x8fba25[_0x19e2dd(0x161)]);if(!shouldIncludeInArchive(_0x8fba25[_0x19e2dd(0x161)]))continue;_0x8fba25[_0x19e2dd(0x175)]()?_0x1546e2[_0x19e2dd(0x160)](...await _0x297284(_0x28d807,_0x5e5d3e)):_0x1546e2[_0x19e2dd(0x160)](_0x5e5d3e);}return _0x1546e2;},_0x2f288d=await _0x297284(_0x4c524a),_0x4368b9=await import('os'),_0x249848=_0x4368b9['tmpdir'](),_0x316d77=_0x458447[_0x1eb668(0x180)](_0x249848,_0x1eb668(0x1b7)+Date['now']()+'.tar.gz');try{await _0x18cf36[_0x1eb668(0x1c3)]({'file':_0x316d77,'gzip':!![],'cwd':_0x4c524a,'portable':!![]},_0x2f288d);const _0x472808=await this['client'][_0x1eb668(0x170)](_0x409808,_0x576c6a,_0x316d77,{'scheduleFrom':_0x56190b?.['scheduleFrom'],'clearSchedule':_0x56190b?.[_0x1eb668(0x15b)],'clearScheduleAll':_0x56190b?.[_0x1eb668(0x172)]});return{'projectId':_0x472808['id'],'projectName':_0x472808[_0x1eb668(0x161)],'revision':_0x472808[_0x1eb668(0x187)]};}finally{try{await _0x3a70a4[_0x1eb668(0x1ad)](_0x316d77);}catch{}}}async[a195_0x7bbdf0(0x14b)](_0xf033e7){const _0x2d7fa0=a195_0x7bbdf0,{id:_0x35b64a}=await this['resolveProjectId'](_0xf033e7),_0x5852c0=await this[_0x2d7fa0(0x162)][_0x2d7fa0(0x194)](_0x35b64a);return{'projectId':_0x5852c0['id'],'projectName':_0x5852c0[_0x2d7fa0(0x161)]};}async[a195_0x7bbdf0(0x1cc)](_0x3fc8ad){const _0x44b4f2=a195_0x7bbdf0,{id:_0x4ab31b,name:_0x277472}=await this[_0x44b4f2(0x1b2)](_0x3fc8ad),_0x39fe70=await this[_0x44b4f2(0x162)][_0x44b4f2(0x1cc)](_0x4ab31b);return{'projectName':_0x277472,'secrets':_0x39fe70};}async['setSecret'](_0x36c2a1,_0x181f38,_0x2bf660){const _0x208ac4=a195_0x7bbdf0,{id:_0x486a8c,name:_0x362e08}=await this['resolveProjectId'](_0x36c2a1);return await this[_0x208ac4(0x162)][_0x208ac4(0x17f)](_0x486a8c,_0x181f38,_0x2bf660),{'projectName':_0x362e08,'key':_0x181f38};}async[a195_0x7bbdf0(0x17e)](_0x31b542,_0x4c6f0b){const _0x5a5a12=a195_0x7bbdf0,{id:_0x459595,name:_0x4f3437}=await this[_0x5a5a12(0x1b2)](_0x31b542),_0x2072e=Object[_0x5a5a12(0x168)](_0x4c6f0b),_0x4fc502=await Promise[_0x5a5a12(0x16a)](_0x2072e[_0x5a5a12(0x19f)](_0x5ada6c=>this[_0x5a5a12(0x162)][_0x5a5a12(0x17f)](_0x459595,_0x5ada6c,_0x4c6f0b[_0x5ada6c]))),_0x1061da=_0x4fc502['map']((_0x37302b,_0x30a846)=>_0x37302b[_0x5a5a12(0x18c)]==='rejected'?_0x2072e[_0x30a846]:null)[_0x5a5a12(0x169)](_0x19162d=>_0x19162d!==null);if(_0x1061da['length']>0x0)throw new SDKError(ErrorCode[_0x5a5a12(0x171)],_0x5a5a12(0x199)+(_0x1061da[_0x5a5a12(0x1cd)]>0x1?'s':'')+':\x20'+_0x1061da['join'](',\x20'));return{'projectName':_0x4f3437,'keys':_0x2072e};}async[a195_0x7bbdf0(0x179)](_0x241f5d,_0x56e7a5){const _0x51d889=a195_0x7bbdf0,{id:_0x8a5508,name:_0x2dfe4f}=await this[_0x51d889(0x1b2)](_0x241f5d);return await this['client'][_0x51d889(0x179)](_0x8a5508,_0x56e7a5),{'projectName':_0x2dfe4f,'key':_0x56e7a5};}async[a195_0x7bbdf0(0x1ab)](_0x392670,_0x28b9da){const _0xaf2a38=a195_0x7bbdf0;return pullWorkflow({'client':this[_0xaf2a38(0x162)],'resolveProjectId':this[_0xaf2a38(0x1b2)][_0xaf2a38(0x1a4)](this)},_0x392670,_0x28b9da);}async['applyPullProject'](_0x1c9692,_0x4eb67c){const _0x3aee69=a195_0x7bbdf0;return applyPullResult({'client':this[_0x3aee69(0x162)],'resolveProjectId':this[_0x3aee69(0x1b2)]['bind'](this)},_0x1c9692,_0x4eb67c);}async[a195_0x7bbdf0(0x190)](_0x2c82c4){const _0x46cf0c=a195_0x7bbdf0;return preparePushWorkflow({'client':this[_0x46cf0c(0x162)],'resolveProjectId':this[_0x46cf0c(0x1b2)][_0x46cf0c(0x1a4)](this)},_0x2c82c4);}async['executePushProject'](_0x420505){const _0x534ad2=a195_0x7bbdf0;return executePushWorkflow({'client':this[_0x534ad2(0x162)],'resolveProjectId':this['resolveProjectId'][_0x534ad2(0x1a4)](this)},_0x420505);}async[a195_0x7bbdf0(0x1b9)](_0x55a877,_0x594923,_0x2eded8){return prepareCloneWorkflow({'client':this['client']},_0x55a877,_0x594923,_0x2eded8);}async[a195_0x7bbdf0(0x19a)](_0x9f58af){const _0x3be575=a195_0x7bbdf0;return executeCloneWorkflow({'client':this[_0x3be575(0x162)]},_0x9f58af);}async['listSchedules'](){const _0x7d375e=a195_0x7bbdf0;return await this[_0x7d375e(0x162)][_0x7d375e(0x192)]();}async[a195_0x7bbdf0(0x1a5)](_0x490614,_0x41c1aa){const _0x113815=a195_0x7bbdf0;return await this[_0x113815(0x162)]['enableSchedule'](_0x490614,_0x41c1aa);}async['disableSchedule'](_0x5d46be){const _0x3796a1=a195_0x7bbdf0;return await this['client'][_0x3796a1(0x1a9)](_0x5d46be);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe43ad9,_0x4ecec8){const _0x3aa17a=a196_0xccd2,_0x54bcf4=_0xe43ad9();while(!![]){try{const _0x40cc2a=parseInt(_0x3aa17a(0x13b))/0x1+parseInt(_0x3aa17a(0x13e))/0x2*(-parseInt(_0x3aa17a(0x126))/0x3)+-parseInt(_0x3aa17a(0x11f))/0x4+-parseInt(_0x3aa17a(0x155))/0x5*(-parseInt(_0x3aa17a(0x125))/0x6)+parseInt(_0x3aa17a(0x143))/0x7+parseInt(_0x3aa17a(0x157))/0x8*(parseInt(_0x3aa17a(0x123))/0x9)+-parseInt(_0x3aa17a(0x121))/0xa;if(_0x40cc2a===_0x4ecec8)break;else _0x54bcf4['push'](_0x54bcf4['shift']());}catch(_0x251a37){_0x54bcf4['push'](_0x54bcf4['shift']());}}}(a196_0x2f2e,0xe904c));import{existsSync,promises as a196_0x18f712}from'fs';import a196_0x3b680a from'path';function a196_0xccd2(_0x56e061,_0x2f2e60){_0x56e061=_0x56e061-0x11f;const _0x2f2e6a=a196_0x2f2e();let _0xccd2e0=_0x2f2e6a[_0x56e061];return _0xccd2e0;}import a196_0x8e39d7 from'os';function a196_0x2f2e(){const _0x145598=['extract','zlib','isDirectory','TAR_BAD_ARCHIVE','tmpdir','length','revision','Failed\x20to\x20extract\x20project\x20archive','stat','includes','projectName','message','deleted','131956shqKgJ','modified','add','20qqENOd','The\x20archive\x20passed\x20initial\x20validation\x20but\x20extraction\x20failed.\x20','type','isNewProject','mkdir','2988461QYqQqZ','path','toISOString','baseDir','unlink','push','\x20bytes)','WORKFLOW_ARCHIVE_CORRUPTED','catch','readdir','archive.tar.gz','new','utf-8','readFile','localeCompare','downloadProjectArchive','targetDir','mkdtemp','5mpHaCK','The\x20archive\x20may\x20be\x20truncated\x20or\x20corrupted.\x20Try\x20pushing\x20a\x20new\x20revision\x20or\x20contact\x20support.','23912yjuamE','size','tar','name','1077696DJmMau','writeFile','5192800lntZrc','join','243aFwxub','sort','9998316IZMXpF','168846pRkqwj','\x20(archive\x20size:\x20','tdx.json','projectId','filter','tdx-wf-pull-','unchanged','cwd'];a196_0x2f2e=function(){return _0x145598;};return a196_0x2f2e();}import{generateDiff,formatDiffWithColors,hasChanges}from'../../utils/diff.js';import{getWorkflowProjectDir,createWorkflowTdxConfigContent,updateWorkflowTdxConfig}from'./tdx-config.js';import{SDKError,ErrorCode}from'../errors.js';export async function pullWorkflow(_0x6c1b52,_0x532771,_0x2541e0={}){const _0x188db7=a196_0xccd2,_0x52ead3=await import(_0x188db7(0x159)),{client:_0x3eedbe,resolveProjectId:_0x4f3ce8}=_0x6c1b52,{id:_0x174f49,name:_0x6defb0}=await _0x4f3ce8(_0x532771),_0xb4c76d=_0x2541e0[_0x188db7(0x146)]||process[_0x188db7(0x12d)](),_0x52ec70=_0x2541e0[_0x188db7(0x153)]||getWorkflowProjectDir(_0x6defb0,_0xb4c76d),_0x219968=a196_0x3b680a[_0x188db7(0x122)](_0x52ec70,_0x188db7(0x128)),_0x9ca2c8=!existsSync(_0x219968),_0x4e0ef2=await a196_0x18f712[_0x188db7(0x154)](a196_0x3b680a[_0x188db7(0x122)](a196_0x8e39d7[_0x188db7(0x132)](),_0x188db7(0x12b))),_0x3b43e7=a196_0x3b680a[_0x188db7(0x122)](_0x4e0ef2,_0x188db7(0x14d)),_0x8486de=a196_0x3b680a['join'](_0x4e0ef2,'extracted');try{await _0x3eedbe[_0x188db7(0x152)](_0x174f49,_0x3b43e7,_0x2541e0[_0x188db7(0x134)]),await a196_0x18f712[_0x188db7(0x142)](_0x8486de,{'recursive':!![]});try{await _0x52ead3[_0x188db7(0x12e)]({'file':_0x3b43e7,'cwd':_0x8486de,'gzip':!![]});}catch(_0x2de1f5){const _0x5c4821=_0x2de1f5 instanceof Error?_0x2de1f5['message']:String(_0x2de1f5);if(_0x5c4821['includes'](_0x188db7(0x131))||_0x5c4821[_0x188db7(0x137)](_0x188db7(0x12f))){const _0x123c72=await a196_0x18f712[_0x188db7(0x136)](_0x3b43e7)[_0x188db7(0x14b)](()=>null),_0x4a3483=_0x123c72?_0x188db7(0x127)+_0x123c72[_0x188db7(0x158)]+'\x20bytes)':'';throw new SDKError(ErrorCode['WORKFLOW_ARCHIVE_CORRUPTED'],_0x188db7(0x135)+_0x4a3483+':\x20'+_0x5c4821,_0x2de1f5,{'helpText':_0x188db7(0x13f)+_0x188db7(0x156)});}throw _0x2de1f5;}const _0x2941bf=await _0x3eedbe['getProject'](_0x174f49),_0x1eeee3=_0x2541e0[_0x188db7(0x134)]||_0x2941bf['revision']||'latest',_0x25e943=await calculateChanges(_0x52ec70,_0x8486de,_0x9ca2c8),_0x45db16={'new':_0x25e943[_0x188db7(0x12a)](_0x561100=>_0x561100[_0x188db7(0x140)]===_0x188db7(0x14e))['length'],'modified':_0x25e943['filter'](_0xa6b9f4=>_0xa6b9f4[_0x188db7(0x140)]==='modified')['length'],'deleted':_0x25e943[_0x188db7(0x12a)](_0x1eb569=>_0x1eb569[_0x188db7(0x140)]==='deleted')[_0x188db7(0x133)],'unchanged':_0x25e943[_0x188db7(0x12a)](_0x5cbd08=>_0x5cbd08[_0x188db7(0x140)]===_0x188db7(0x12c))['length']};return{'projectName':_0x6defb0,'projectId':_0x174f49,'revision':_0x1eeee3,'targetDir':_0x52ec70,'changes':_0x25e943,'summary':_0x45db16,'hasChanges':_0x45db16[_0x188db7(0x14e)]>0x0||_0x45db16[_0x188db7(0x13c)]>0x0||_0x45db16[_0x188db7(0x13a)]>0x0,'isNewProject':_0x9ca2c8};}finally{await a196_0x18f712['rm'](_0x4e0ef2,{'recursive':!![],'force':!![]});}}export async function applyPullResult(_0x10f04f,_0x2f7042,_0x43ab2d={}){const _0x4ed179=a196_0xccd2,_0x8101e7=await import(_0x4ed179(0x159)),{client:_0x5ef28c}=_0x10f04f,_0x2e4088=await a196_0x18f712[_0x4ed179(0x154)](a196_0x3b680a[_0x4ed179(0x122)](a196_0x8e39d7[_0x4ed179(0x132)](),'tdx-wf-apply-')),_0x284766=a196_0x3b680a[_0x4ed179(0x122)](_0x2e4088,_0x4ed179(0x14d));try{await _0x5ef28c[_0x4ed179(0x152)](_0x2f7042[_0x4ed179(0x129)],_0x284766,_0x43ab2d[_0x4ed179(0x134)]),await a196_0x18f712[_0x4ed179(0x142)](_0x2f7042['targetDir'],{'recursive':!![]});for(const _0x5bbd72 of _0x2f7042['changes']){if(_0x5bbd72['type']===_0x4ed179(0x13a)){const _0xa4403b=a196_0x3b680a[_0x4ed179(0x122)](_0x2f7042['targetDir'],_0x5bbd72[_0x4ed179(0x144)]);await a196_0x18f712[_0x4ed179(0x147)](_0xa4403b)[_0x4ed179(0x14b)](()=>{});}}try{await _0x8101e7[_0x4ed179(0x12e)]({'file':_0x284766,'cwd':_0x2f7042[_0x4ed179(0x153)],'gzip':!![]});}catch(_0x45b078){const _0x4b5d87=_0x45b078 instanceof Error?_0x45b078[_0x4ed179(0x139)]:String(_0x45b078);if(_0x4b5d87['includes'](_0x4ed179(0x131))||_0x4b5d87['includes'](_0x4ed179(0x12f))){const _0x971832=await a196_0x18f712[_0x4ed179(0x136)](_0x284766)['catch'](()=>null),_0x432d07=_0x971832?_0x4ed179(0x127)+_0x971832[_0x4ed179(0x158)]+_0x4ed179(0x149):'';throw new SDKError(ErrorCode[_0x4ed179(0x14a)],_0x4ed179(0x135)+_0x432d07+':\x20'+_0x4b5d87,_0x45b078,{'helpText':_0x4ed179(0x13f)+_0x4ed179(0x156)});}throw _0x45b078;}const _0x15fc01=a196_0x3b680a[_0x4ed179(0x122)](_0x2f7042[_0x4ed179(0x153)],_0x4ed179(0x128));if(_0x2f7042[_0x4ed179(0x141)]){const _0x1850d8=createWorkflowTdxConfigContent(_0x2f7042[_0x4ed179(0x138)],_0x2f7042[_0x4ed179(0x129)],_0x2f7042['revision']);await a196_0x18f712[_0x4ed179(0x120)](_0x15fc01,_0x1850d8,_0x4ed179(0x14f));}else updateWorkflowTdxConfig(_0x15fc01,{'last_pulled_revision':_0x2f7042[_0x4ed179(0x134)],'last_pulled_at':new Date()[_0x4ed179(0x145)]()});}finally{await a196_0x18f712['rm'](_0x2e4088,{'recursive':!![],'force':!![]});}}async function calculateChanges(_0x30abf6,_0x38fa2d,_0x24ec40){const _0x3874e9=a196_0xccd2,_0x38121b=[],_0x53cfbe=await getAllFiles(_0x38fa2d),_0x563913=existsSync(_0x30abf6)?await getAllFiles(_0x30abf6):new Set();for(const _0x1b4891 of _0x53cfbe){const _0x423e41=a196_0x3b680a[_0x3874e9(0x122)](_0x30abf6,_0x1b4891),_0x3c424c=a196_0x3b680a[_0x3874e9(0x122)](_0x38fa2d,_0x1b4891);if(_0x1b4891===_0x3874e9(0x128))continue;const _0x48fb93=await a196_0x18f712[_0x3874e9(0x150)](_0x3c424c,_0x3874e9(0x14f))[_0x3874e9(0x14b)](()=>null);if(_0x48fb93===null)continue;if(!existsSync(_0x423e41)||_0x24ec40)_0x38121b[_0x3874e9(0x148)]({'path':_0x1b4891,'type':_0x3874e9(0x14e),'newContent':_0x48fb93});else{const _0x2b2227=await a196_0x18f712[_0x3874e9(0x150)](_0x423e41,_0x3874e9(0x14f))['catch'](()=>null);if(_0x2b2227===null)_0x38121b['push']({'path':_0x1b4891,'type':'modified','newContent':_0x48fb93});else{if(_0x2b2227!==_0x48fb93){const _0xd275bb=generateDiff(_0x2b2227,_0x48fb93),_0x39dc45=hasChanges(_0xd275bb)?formatDiffWithColors(_0xd275bb):undefined;_0x38121b['push']({'path':_0x1b4891,'type':_0x3874e9(0x13c),'oldContent':_0x2b2227,'newContent':_0x48fb93,'diff':_0x39dc45});}else _0x38121b[_0x3874e9(0x148)]({'path':_0x1b4891,'type':_0x3874e9(0x12c)});}}}if(!_0x24ec40)for(const _0x1b59a1 of _0x563913){if(_0x1b59a1===_0x3874e9(0x128))continue;if(!_0x53cfbe['has'](_0x1b59a1)){const _0x5e03bc=a196_0x3b680a[_0x3874e9(0x122)](_0x30abf6,_0x1b59a1),_0x358b83=await a196_0x18f712[_0x3874e9(0x150)](_0x5e03bc,'utf-8')[_0x3874e9(0x14b)](()=>undefined);_0x38121b[_0x3874e9(0x148)]({'path':_0x1b59a1,'type':_0x3874e9(0x13a),'oldContent':_0x358b83});}}return _0x38121b[_0x3874e9(0x124)]((_0x15327f,_0x3c54ee)=>_0x15327f['path'][_0x3874e9(0x151)](_0x3c54ee[_0x3874e9(0x144)])),_0x38121b;}async function getAllFiles(_0x4bfdf6,_0x31596f=''){const _0xf41ae2=a196_0xccd2,_0xb34842=new Set();if(!existsSync(_0x4bfdf6))return _0xb34842;const _0x47b03d=await a196_0x18f712[_0xf41ae2(0x14c)](_0x4bfdf6,{'withFileTypes':!![]});for(const _0x194ba5 of _0x47b03d){const _0x468eee=_0x31596f?a196_0x3b680a[_0xf41ae2(0x122)](_0x31596f,_0x194ba5['name']):_0x194ba5[_0xf41ae2(0x15a)];if(_0x194ba5[_0xf41ae2(0x130)]()){const _0x7f9ee3=await getAllFiles(a196_0x3b680a[_0xf41ae2(0x122)](_0x4bfdf6,_0x194ba5[_0xf41ae2(0x15a)]),_0x468eee);for(const _0x5d2987 of _0x7f9ee3){_0xb34842[_0xf41ae2(0x13d)](_0x5d2987);}}else _0xb34842['add'](_0x468eee);}return _0xb34842;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3fd88a,_0x552de3){const _0x13309b=a197_0x3da2,_0x3e69be=_0x3fd88a();while(!![]){try{const _0x458330=-parseInt(_0x13309b(0x1c4))/0x1*(parseInt(_0x13309b(0x1d7))/0x2)+parseInt(_0x13309b(0x1c3))/0x3*(parseInt(_0x13309b(0x1ae))/0x4)+-parseInt(_0x13309b(0x1cf))/0x5*(-parseInt(_0x13309b(0x1b7))/0x6)+parseInt(_0x13309b(0x1e1))/0x7*(parseInt(_0x13309b(0x1cc))/0x8)+parseInt(_0x13309b(0x1ba))/0x9*(-parseInt(_0x13309b(0x1c6))/0xa)+-parseInt(_0x13309b(0x1d0))/0xb*(-parseInt(_0x13309b(0x1d2))/0xc)+parseInt(_0x13309b(0x1dd))/0xd*(-parseInt(_0x13309b(0x1c0))/0xe);if(_0x458330===_0x552de3)break;else _0x3e69be['push'](_0x3e69be['shift']());}catch(_0x2a86f0){_0x3e69be['push'](_0x3e69be['shift']());}}}(a197_0x11a5,0x61c22));import{promises as a197_0x498e23}from'fs';function a197_0x3da2(_0x1a4be9,_0x1eb85f){_0x1a4be9=_0x1a4be9-0x1a6;const _0x11a5a8=a197_0x11a5();let _0x3da27f=_0x11a5a8[_0x1a4be9];return _0x3da27f;}function a197_0x11a5(){const _0x4b4fc=['TAR_BAD_ARCHIVE','length','configResult','tmpdir','stat','has','\x20(archive\x20size:\x20','localeCompare','push','4buGuTr','readFile','join','No\x20','.digdagignore','uploadProjectArchive','revision','tdx-wf-push-archive-','archive.tar.gz','204Szjlal','filter','new','36hhANHJ','name','path','deleted','posix','readdir','14sRZEgH','sourceDir','catch','1108362Xazuhw','1627mOzEZP','modified','986420nPucPp','workflow_project','configPath','tdx.json','projectName','unchanged','6616FWHIqj','sort','create','27995ndPuXw','90046OxDeud','cwd','876TreAFN','size','isDirectory','endsWith','utf-8','326OCZnDT','toISOString','tar','mkdtemp','replace','tdx-wf-push-','1371253KRDpyG','\x20workflow\x20files\x20found\x20in\x20','includes','type','70imHpeV','Failed\x20to\x20extract\x20remote\x20project\x20archive\x20for\x20comparison','extracted'];a197_0x11a5=function(){return _0x4b4fc;};return a197_0x11a5();}import a197_0x1b6742 from'path';import a197_0x432c97 from'os';import{generateDiff,formatDiffWithColors,hasChanges}from'../../utils/diff.js';import{findWorkflowTdxConfig,updateWorkflowTdxConfig}from'./tdx-config.js';import{shouldIncludeInArchive,WORKFLOW_FILE_EXTENSION,loadDigdagignore,createIgnoreInstance,addScopedPatterns,shouldIgnoreWithInstance}from'./workflow-utils.js';import{SDKError,ErrorCode}from'../errors.js';export async function preparePushWorkflow(_0x383b81,_0x19a106={}){const _0x4e4273=a197_0x3da2,_0x3344eb=await import(_0x4e4273(0x1d9)),{client:_0x1acf7f,resolveProjectId:_0x2e2579}=_0x383b81,_0x4f4d7b=_0x19a106['sourceDir']||process[_0x4e4273(0x1d1)](),_0x354af0=findWorkflowTdxConfig(_0x4f4d7b),{config:_0x1e16f8,configDir:_0x13ca29}=_0x354af0;let _0x5178d0,_0x2f6648=_0x1e16f8[_0x4e4273(0x1c7)];try{const _0x4d2a0a=await _0x2e2579(_0x1e16f8['workflow_project']);_0x5178d0=_0x4d2a0a['id'],_0x2f6648=_0x4d2a0a[_0x4e4273(0x1bb)];}catch{_0x5178d0='';}const _0xf343f3=_0x19a106[_0x4e4273(0x1b4)]||new Date()['toISOString']()[_0x4e4273(0x1db)](/[:.]/g,'-');if(!_0x19a106['skipValidation']){const _0x3832fe=await a197_0x498e23['readdir'](_0x13ca29),_0x4548ff=_0x3832fe[_0x4e4273(0x1b8)](_0xc42a33=>_0xc42a33[_0x4e4273(0x1d5)](WORKFLOW_FILE_EXTENSION));if(_0x4548ff[_0x4e4273(0x1a6)]===0x0)throw new Error(_0x4e4273(0x1b1)+WORKFLOW_FILE_EXTENSION+_0x4e4273(0x1de)+_0x13ca29);}const _0x4c2347=await getProjectFiles(_0x13ca29);let _0x38d7f9;if(_0x5178d0){const _0xdde872=await a197_0x498e23[_0x4e4273(0x1da)](a197_0x1b6742[_0x4e4273(0x1b0)](a197_0x432c97[_0x4e4273(0x1a8)](),_0x4e4273(0x1dc))),_0x35c721=a197_0x1b6742[_0x4e4273(0x1b0)](_0xdde872,_0x4e4273(0x1b6)),_0xa946c0=a197_0x1b6742[_0x4e4273(0x1b0)](_0xdde872,_0x4e4273(0x1e3));try{await _0x1acf7f['downloadProjectArchive'](_0x5178d0,_0x35c721),await a197_0x498e23['mkdir'](_0xa946c0,{'recursive':!![]});try{await _0x3344eb['extract']({'file':_0x35c721,'cwd':_0xa946c0,'gzip':!![]});}catch(_0x19c0f1){const _0x5f3927=_0x19c0f1 instanceof Error?_0x19c0f1['message']:String(_0x19c0f1);if(_0x5f3927[_0x4e4273(0x1df)](_0x4e4273(0x1e4))||_0x5f3927[_0x4e4273(0x1df)]('zlib')){const _0x39d2c7=await a197_0x498e23[_0x4e4273(0x1a9)](_0x35c721)['catch'](()=>null),_0x2c02eb=_0x39d2c7?_0x4e4273(0x1ab)+_0x39d2c7[_0x4e4273(0x1d3)]+'\x20bytes)':'';throw new SDKError(ErrorCode['WORKFLOW_ARCHIVE_CORRUPTED'],_0x4e4273(0x1e2)+_0x2c02eb+':\x20'+_0x5f3927,_0x19c0f1,{'helpText':'Use\x20\x27tdx\x20wf\x20upload\x27\x20to\x20force\x20push\x20without\x20comparison.'});}throw _0x19c0f1;}_0x38d7f9=await calculatePushChanges(_0x13ca29,_0xa946c0,_0x4c2347);}finally{await a197_0x498e23['rm'](_0xdde872,{'recursive':!![],'force':!![]});}}else{_0x38d7f9=[];for(const _0x14666e of _0x4c2347){const _0x116e79=a197_0x1b6742[_0x4e4273(0x1b0)](_0x13ca29,_0x14666e),_0x35cfc0=await a197_0x498e23['readFile'](_0x116e79,'utf-8')[_0x4e4273(0x1c2)](()=>null);_0x38d7f9['push']({'path':_0x14666e,'type':_0x4e4273(0x1b9),'newContent':_0x35cfc0||undefined});}}const _0x9331b0={'new':_0x38d7f9[_0x4e4273(0x1b8)](_0x2ea549=>_0x2ea549[_0x4e4273(0x1e0)]===_0x4e4273(0x1b9))['length'],'modified':_0x38d7f9[_0x4e4273(0x1b8)](_0x33fc17=>_0x33fc17[_0x4e4273(0x1e0)]===_0x4e4273(0x1c5))[_0x4e4273(0x1a6)],'deleted':_0x38d7f9[_0x4e4273(0x1b8)](_0x29ef3e=>_0x29ef3e[_0x4e4273(0x1e0)]==='deleted')[_0x4e4273(0x1a6)],'unchanged':_0x38d7f9[_0x4e4273(0x1b8)](_0x147e0e=>_0x147e0e[_0x4e4273(0x1e0)]===_0x4e4273(0x1cb))[_0x4e4273(0x1a6)]};return{'projectName':_0x2f6648,'projectId':_0x5178d0,'revision':_0xf343f3,'sourceDir':_0x13ca29,'changes':_0x38d7f9,'summary':_0x9331b0,'hasChanges':_0x9331b0[_0x4e4273(0x1b9)]>0x0||_0x9331b0[_0x4e4273(0x1c5)]>0x0||_0x9331b0[_0x4e4273(0x1bd)]>0x0,'configResult':_0x354af0};}export async function executePushWorkflow(_0x39c4f5,_0x213fa6){const _0x5bf2a9=a197_0x3da2,_0x2a680a=await import('tar'),{client:_0x5e3961}=_0x39c4f5,_0x1ad38c=await getProjectFiles(_0x213fa6[_0x5bf2a9(0x1c1)]),_0x3df54d=await a197_0x498e23[_0x5bf2a9(0x1da)](a197_0x1b6742[_0x5bf2a9(0x1b0)](a197_0x432c97[_0x5bf2a9(0x1a8)](),_0x5bf2a9(0x1b5))),_0x5738db=a197_0x1b6742[_0x5bf2a9(0x1b0)](_0x3df54d,'archive.tar.gz');try{await _0x2a680a[_0x5bf2a9(0x1ce)]({'file':_0x5738db,'gzip':!![],'cwd':_0x213fa6['sourceDir'],'portable':!![]},_0x1ad38c);const _0x17ef25=await _0x5e3961[_0x5bf2a9(0x1b3)](_0x213fa6[_0x5bf2a9(0x1ca)],_0x213fa6['revision'],_0x5738db);return updateWorkflowTdxConfig(_0x213fa6[_0x5bf2a9(0x1a7)][_0x5bf2a9(0x1c8)],{'workflow_project_id':_0x17ef25['id'],'last_pushed_revision':_0x17ef25[_0x5bf2a9(0x1b4)],'last_pushed_at':new Date()[_0x5bf2a9(0x1d8)]()}),{'projectId':_0x17ef25['id'],'projectName':_0x17ef25[_0x5bf2a9(0x1bb)],'revision':_0x17ef25[_0x5bf2a9(0x1b4)]};}finally{await a197_0x498e23['rm'](_0x3df54d,{'recursive':!![],'force':!![]});}}async function getProjectFiles(_0x3b3b7a,_0x1f9ad1=_0x3b3b7a,_0x1c6ee0='',_0x19b545=null){const _0x545fa0=a197_0x3da2,_0x7e273=[];if(_0x19b545===null){_0x19b545=createIgnoreInstance();const _0x1d37a8=await loadDigdagignore(_0x3b3b7a);_0x1d37a8&&_0x19b545['add'](_0x1d37a8);}if(_0x1c6ee0!==''){const _0x2ee0bd=await loadDigdagignore(_0x1f9ad1);_0x2ee0bd&&addScopedPatterns(_0x19b545,_0x2ee0bd,_0x1c6ee0);}const _0x60d195=await a197_0x498e23[_0x545fa0(0x1bf)](_0x1f9ad1,{'withFileTypes':!![]});for(const _0x2a8c57 of _0x60d195){const _0x5ae745=_0x1c6ee0?a197_0x1b6742[_0x545fa0(0x1be)][_0x545fa0(0x1b0)](_0x1c6ee0,_0x2a8c57[_0x545fa0(0x1bb)]):_0x2a8c57[_0x545fa0(0x1bb)];if(_0x2a8c57[_0x545fa0(0x1bb)]===_0x545fa0(0x1c9))continue;if(_0x2a8c57[_0x545fa0(0x1bb)]===_0x545fa0(0x1b2))continue;if(!shouldIncludeInArchive(_0x2a8c57[_0x545fa0(0x1bb)]))continue;if(shouldIgnoreWithInstance(_0x19b545,_0x5ae745,_0x2a8c57['isDirectory']()))continue;if(_0x2a8c57[_0x545fa0(0x1d4)]()){const _0x4c7669=await getProjectFiles(_0x3b3b7a,a197_0x1b6742[_0x545fa0(0x1b0)](_0x1f9ad1,_0x2a8c57[_0x545fa0(0x1bb)]),_0x5ae745,_0x19b545);_0x7e273['push'](..._0x4c7669);}else _0x7e273[_0x545fa0(0x1ad)](_0x5ae745);}return _0x7e273;}async function calculatePushChanges(_0x2dc4ee,_0xb730c8,_0x284bef){const _0x55a5f9=a197_0x3da2,_0x32209d=[],_0x191b0f=new Set(await getProjectFiles(_0xb730c8));for(const _0x2ed5a6 of _0x284bef){const _0x5f3dfd=a197_0x1b6742[_0x55a5f9(0x1b0)](_0x2dc4ee,_0x2ed5a6),_0x1db025=a197_0x1b6742[_0x55a5f9(0x1b0)](_0xb730c8,_0x2ed5a6),_0xbfea60=await a197_0x498e23[_0x55a5f9(0x1af)](_0x5f3dfd,_0x55a5f9(0x1d6))[_0x55a5f9(0x1c2)](()=>null);if(_0xbfea60===null)continue;if(!_0x191b0f[_0x55a5f9(0x1aa)](_0x2ed5a6))_0x32209d[_0x55a5f9(0x1ad)]({'path':_0x2ed5a6,'type':_0x55a5f9(0x1b9),'newContent':_0xbfea60});else{const _0x2947b4=await a197_0x498e23[_0x55a5f9(0x1af)](_0x1db025,_0x55a5f9(0x1d6))[_0x55a5f9(0x1c2)](()=>null);if(_0x2947b4===null)_0x32209d[_0x55a5f9(0x1ad)]({'path':_0x2ed5a6,'type':_0x55a5f9(0x1c5),'newContent':_0xbfea60});else{if(_0x2947b4!==_0xbfea60){const _0x39d19b=generateDiff(_0x2947b4,_0xbfea60),_0x729a02=hasChanges(_0x39d19b)?formatDiffWithColors(_0x39d19b):undefined;_0x32209d[_0x55a5f9(0x1ad)]({'path':_0x2ed5a6,'type':_0x55a5f9(0x1c5),'oldContent':_0x2947b4,'newContent':_0xbfea60,'diff':_0x729a02});}else _0x32209d[_0x55a5f9(0x1ad)]({'path':_0x2ed5a6,'type':'unchanged'});}}}for(const _0x2a232d of _0x191b0f){if(!_0x284bef['includes'](_0x2a232d)){const _0xb36287=a197_0x1b6742[_0x55a5f9(0x1b0)](_0xb730c8,_0x2a232d),_0x3676b1=await a197_0x498e23[_0x55a5f9(0x1af)](_0xb36287,'utf-8')['catch'](()=>undefined);_0x32209d['push']({'path':_0x2a232d,'type':'deleted','oldContent':_0x3676b1});}}return _0x32209d[_0x55a5f9(0x1cd)]((_0x5800ba,_0x4216a8)=>_0x5800ba[_0x55a5f9(0x1bc)][_0x55a5f9(0x1ac)](_0x4216a8['path'])),_0x32209d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x4bfb74=a198_0x140a;(function(_0xa2b94e,_0x3693f9){const _0x2906c1=a198_0x140a,_0x508328=_0xa2b94e();while(!![]){try{const _0xf88bbc=-parseInt(_0x2906c1(0x1ae))/0x1+parseInt(_0x2906c1(0x1b9))/0x2*(parseInt(_0x2906c1(0x196))/0x3)+-parseInt(_0x2906c1(0x199))/0x4*(parseInt(_0x2906c1(0x1ad))/0x5)+-parseInt(_0x2906c1(0x1b2))/0x6+-parseInt(_0x2906c1(0x1b6))/0x7*(-parseInt(_0x2906c1(0x1c0))/0x8)+parseInt(_0x2906c1(0x1b5))/0x9*(parseInt(_0x2906c1(0x1a7))/0xa)+parseInt(_0x2906c1(0x1bd))/0xb;if(_0xf88bbc===_0x3693f9)break;else _0x508328['push'](_0x508328['shift']());}catch(_0x4a1fe8){_0x508328['push'](_0x508328['shift']());}}}(a198_0x3fec,0x9c0eb));const OPERATOR_WARNINGS={'td_run>':a198_0x4bfb74(0x1be),'http>':a198_0x4bfb74(0x1c1),'http_call>':'http','mail>':'mail'},WARNING_META={'activation':{'label':a198_0x4bfb74(0x1b7),'singular':a198_0x4bfb74(0x1be),'plural':a198_0x4bfb74(0x1c2)},'http':{'label':'⚠️\x20\x20HTTP\x20call','singular':a198_0x4bfb74(0x1ab),'plural':a198_0x4bfb74(0x198)},'mail':{'label':a198_0x4bfb74(0x1a5),'singular':a198_0x4bfb74(0x1bb),'plural':a198_0x4bfb74(0x194)},'export':{'label':'⚠️\x20\x20DATA\x20EXPORT','singular':a198_0x4bfb74(0x1af),'plural':'data\x20exports'}};function emptySummary(){return{'activation':0x0,'http':0x0,'mail':0x0,'export':0x0};}function a198_0x140a(_0x165e03,_0x3d821c){_0x165e03=_0x165e03-0x194;const _0x3fecaa=a198_0x3fec();let _0x140ade=_0x3fecaa[_0x165e03];return _0x140ade;}function collectTasks(_0x52c0ba){const _0x1b1478=a198_0x4bfb74;if(!_0x52c0ba||typeof _0x52c0ba!==_0x1b1478(0x1a3))return[];if(Array['isArray'](_0x52c0ba))return _0x52c0ba['flatMap'](collectTasks);const _0x425e96=_0x52c0ba,_0x3a4f80=[];for(const [_0x5b682e,_0x561f07]of Object['entries'](_0x425e96)){if(_0x5b682e[_0x1b1478(0x1a8)]('>'))continue;_0x5b682e['startsWith']('+')?_0x3a4f80[_0x1b1478(0x1b0)](buildTaskNode(_0x5b682e,_0x561f07)):_0x3a4f80[_0x1b1478(0x1b0)](...collectTasks(_0x561f07));}return _0x3a4f80;}function pickResultTarget(_0x46a1eb){const _0x5050ca=a198_0x4bfb74,_0x59c6f2=_0x46a1eb[_0x5050ca(0x1b1)];if(typeof _0x59c6f2==='string'&&_0x59c6f2[_0x5050ca(0x1a9)]>0x0)return _0x59c6f2;const _0x1be973=_0x46a1eb[_0x5050ca(0x1a0)];if(typeof _0x1be973===_0x5050ca(0x1ba)&&_0x1be973['length']>0x0)return _0x1be973;return undefined;}function buildTaskNode(_0x2561b2,_0xc5cc30){const _0x2eb90d=a198_0x4bfb74,_0x30df25={'name':_0x2561b2,'children':[]};if(!_0xc5cc30||typeof _0xc5cc30!==_0x2eb90d(0x1a3))return _0x30df25;const _0x27c750=_0xc5cc30;for(const [_0x3e22d5,_0x5a44c7]of Object['entries'](_0x27c750)){if(!_0x3e22d5[_0x2eb90d(0x1a8)]('>'))continue;_0x30df25[_0x2eb90d(0x197)]=_0x3e22d5,_0x30df25[_0x2eb90d(0x1b3)]=typeof _0x5a44c7===_0x2eb90d(0x1ba)?_0x5a44c7:JSON[_0x2eb90d(0x19b)](_0x5a44c7),_0x30df25[_0x2eb90d(0x1a1)]=OPERATOR_WARNINGS[_0x3e22d5];break;}if(_0x30df25[_0x2eb90d(0x197)]===_0x2eb90d(0x1bf)||_0x30df25['operator']===_0x2eb90d(0x1a4)){const _0x2d4ad1=pickResultTarget(_0x27c750);_0x2d4ad1&&(_0x30df25[_0x2eb90d(0x1a1)]='export',_0x30df25[_0x2eb90d(0x1bc)]=_0x2d4ad1);}return _0x30df25[_0x2eb90d(0x1ac)]=collectTasks(_0x27c750),_0x30df25;}export function parseTaskGraph(_0x37f881){return collectTasks(_0x37f881);}export function summarizeTaskGraph(_0xa2f0b2){const _0x750869=emptySummary(),_0x259e1a=_0x30853b=>{const _0x3e223f=a198_0x140a;for(const _0x1aba20 of _0x30853b){if(_0x1aba20[_0x3e223f(0x1a1)])_0x750869[_0x1aba20['warning']]++;_0x259e1a(_0x1aba20[_0x3e223f(0x1ac)]);}};return _0x259e1a(_0xa2f0b2),_0x750869;}function a198_0x3fec(){const _0x17ca00=['result_connection','406170Ulwdwg','command','name','6915033CyGsKj','293503APAyJt','⚠️\x20\x20ACTIVATION','\x20\x20\x20←\x20','2542844XMtbpL','string','email\x20send','warningDetail','5186192wlAxFz','activation','td>','88iKoPJV','http','activations',',\x20and\x20','email\x20sends','max','3JMqQkk','operator','HTTP\x20calls','4408028eABRKl','\x20and\x20','stringify','label','slice','repeat','keys','result_url','warning','⚠️\x20\x20This\x20workflow\x20contains\x20','object','td_for_each>','⚠️\x20\x20Email\x20send','baseIndent','10QDENeS','endsWith','length','join','HTTP\x20call','children','5THcyQj','1163537rwdWMH','data\x20export','push'];a198_0x3fec=function(){return _0x17ca00;};return a198_0x3fec();}const MAX_COMMAND_LENGTH=0x50;function truncate(_0x2d8710,_0x149901){const _0x5e0332=a198_0x4bfb74;if(_0x2d8710['length']<=_0x149901)return _0x2d8710;return _0x2d8710[_0x5e0332(0x19d)](0x0,Math[_0x5e0332(0x195)](0x0,_0x149901-0x1))+'…';}export function formatTaskGraph(_0x1879fd,_0x1d319e={}){const _0x55466a=a198_0x4bfb74,_0x5105a0=_0x1d319e[_0x55466a(0x1a6)]??0x1,_0x103def=[],_0x229447=(_0x500dd4,_0x4497bd)=>{const _0x53ef6d=_0x55466a;for(const _0x1dd848 of _0x500dd4){const _0x3e3ff7='\x20\x20'[_0x53ef6d(0x19e)](_0x5105a0+_0x4497bd);_0x103def[_0x53ef6d(0x1b0)](''+_0x3e3ff7+_0x1dd848[_0x53ef6d(0x1b4)]);if(_0x1dd848[_0x53ef6d(0x197)]){const _0x3c607b='\x20\x20'['repeat'](_0x5105a0+_0x4497bd+0x1),_0x5b59c8=_0x1dd848[_0x53ef6d(0x1b3)]?'\x20'+truncate(_0x1dd848['command'],MAX_COMMAND_LENGTH):'',_0x12549c=_0x1dd848[_0x53ef6d(0x1a1)]?_0x53ef6d(0x1b8)+WARNING_META[_0x1dd848[_0x53ef6d(0x1a1)]][_0x53ef6d(0x19c)]+(_0x1dd848[_0x53ef6d(0x1bc)]?'\x20→\x20'+_0x1dd848['warningDetail']:''):'';_0x103def[_0x53ef6d(0x1b0)](''+_0x3c607b+_0x1dd848[_0x53ef6d(0x197)]+_0x5b59c8+_0x12549c);}_0x229447(_0x1dd848[_0x53ef6d(0x1ac)],_0x4497bd+0x1);}};return _0x229447(_0x1879fd,0x0),_0x103def;}export function formatWarningSummary(_0x5ea08c){const _0x4bee99=a198_0x4bfb74,_0x4c5827=[];for(const _0x11dde0 of Object[_0x4bee99(0x19f)](WARNING_META)){const _0xe7c568=_0x5ea08c[_0x11dde0];if(_0xe7c568>0x0){const {singular:_0x4a50da,plural:_0x430853}=WARNING_META[_0x11dde0];_0x4c5827[_0x4bee99(0x1b0)](_0xe7c568+'\x20'+(_0xe7c568===0x1?_0x4a50da:_0x430853));}}if(_0x4c5827['length']===0x0)return null;if(_0x4c5827[_0x4bee99(0x1a9)]===0x1)return _0x4bee99(0x1a2)+_0x4c5827[0x0]+'.';if(_0x4c5827[_0x4bee99(0x1a9)]===0x2)return _0x4bee99(0x1a2)+_0x4c5827[0x0]+_0x4bee99(0x19a)+_0x4c5827[0x1]+'.';const _0x41f88e=_0x4c5827[_0x4c5827[_0x4bee99(0x1a9)]-0x1];return'⚠️\x20\x20This\x20workflow\x20contains\x20'+_0x4c5827[_0x4bee99(0x19d)](0x0,-0x1)[_0x4bee99(0x1aa)](',\x20')+_0x4bee99(0x1c3)+_0x41f88e+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x5d54e7=a199_0x2158;(function(_0xf21610,_0xb91980){const _0x15f8bb=a199_0x2158,_0x8653f6=_0xf21610();while(!![]){try{const _0x1017ae=-parseInt(_0x15f8bb(0xb5))/0x1+parseInt(_0x15f8bb(0xb3))/0x2*(-parseInt(_0x15f8bb(0xc4))/0x3)+-parseInt(_0x15f8bb(0xb8))/0x4+parseInt(_0x15f8bb(0xc6))/0x5*(parseInt(_0x15f8bb(0xbe))/0x6)+parseInt(_0x15f8bb(0xae))/0x7+-parseInt(_0x15f8bb(0xa9))/0x8+parseInt(_0x15f8bb(0xaa))/0x9;if(_0x1017ae===_0xb91980)break;else _0x8653f6['push'](_0x8653f6['shift']());}catch(_0x3d4d8a){_0x8653f6['push'](_0x8653f6['shift']());}}}(a199_0x58b5,0xa965b));function a199_0x2158(_0x1e5f16,_0x251f06){_0x1e5f16=_0x1e5f16-0xa9;const _0x58b5a8=a199_0x58b5();let _0x2158f8=_0x58b5a8[_0x1e5f16];return _0x2158f8;}import{existsSync,readFileSync,writeFileSync}from'fs';import a199_0x260156 from'path';function a199_0x58b5(){const _0x540f37=['dirname','25818rnsQLN','root','5UGeVUb','string','6973008FVDhDQ','4273938BegRQF','parse','last_pulled_revision','object','7164073DQnuCe','resolve','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27workflow_project\x27\x20field','utf-8','tdx.json','18jNjSjg','cwd','368200JKlcHx','join','workflow_project','369216ZOOmJg','last_pushed_revision','Invalid\x20JSON\x20in\x20','stringify','No\x20workflow\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20wf\x20pull\x20<project>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','last_pushed_at','3630684hHPhrV','last_pulled_at','workflows','workflow_project_id','Invalid\x20tdx.json:\x20expected\x20object'];a199_0x58b5=function(){return _0x540f37;};return a199_0x58b5();}const TDX_CONFIG_FILE=a199_0x5d54e7(0xb2),WORKFLOWS_DIR=a199_0x5d54e7(0xc0);export function findWorkflowTdxConfigPath(_0x5beab4=process[a199_0x5d54e7(0xb4)]()){const _0x3bc13e=a199_0x5d54e7;let _0x248f80=a199_0x260156[_0x3bc13e(0xaf)](_0x5beab4);const _0x2f47b9=a199_0x260156[_0x3bc13e(0xab)](_0x248f80)[_0x3bc13e(0xc5)];while(_0x248f80!==_0x2f47b9){const _0x36858f=a199_0x260156[_0x3bc13e(0xb6)](_0x248f80,TDX_CONFIG_FILE);if(existsSync(_0x36858f))try{const _0x20fbad=readFileSync(_0x36858f,_0x3bc13e(0xb1)),_0x462b15=JSON[_0x3bc13e(0xab)](_0x20fbad);if(_0x462b15&&typeof _0x462b15===_0x3bc13e(0xad)&&_0x3bc13e(0xb7)in _0x462b15)return _0x36858f;}catch{}_0x248f80=a199_0x260156[_0x3bc13e(0xc3)](_0x248f80);}return null;}export function loadWorkflowTdxConfig(_0x5844f8){const _0xeb3c68=a199_0x5d54e7,_0x46423f=readFileSync(_0x5844f8,_0xeb3c68(0xb1));let _0x34785b;try{_0x34785b=JSON['parse'](_0x46423f);}catch{throw new Error(_0xeb3c68(0xba)+_0x5844f8);}if(!_0x34785b||typeof _0x34785b!==_0xeb3c68(0xad))throw new Error(_0xeb3c68(0xc2));const _0x13c8be=_0x34785b;if(!_0x13c8be[_0xeb3c68(0xb7)]||typeof _0x13c8be[_0xeb3c68(0xb7)]!==_0xeb3c68(0xc7))throw new Error(_0xeb3c68(0xb0));return{'workflow_project':_0x13c8be['workflow_project'],'workflow_project_id':typeof _0x13c8be[_0xeb3c68(0xc1)]===_0xeb3c68(0xc7)?_0x13c8be[_0xeb3c68(0xc1)]:undefined,'last_pulled_revision':typeof _0x13c8be['last_pulled_revision']==='string'?_0x13c8be[_0xeb3c68(0xac)]:undefined,'last_pulled_at':typeof _0x13c8be[_0xeb3c68(0xbf)]===_0xeb3c68(0xc7)?_0x13c8be[_0xeb3c68(0xbf)]:undefined,'last_pushed_revision':typeof _0x13c8be[_0xeb3c68(0xb9)]===_0xeb3c68(0xc7)?_0x13c8be[_0xeb3c68(0xb9)]:undefined,'last_pushed_at':typeof _0x13c8be[_0xeb3c68(0xbd)]==='string'?_0x13c8be['last_pushed_at']:undefined};}export function findWorkflowTdxConfig(_0xfb1b00=process['cwd']()){const _0x34ff3e=a199_0x5d54e7,_0x45b451=findWorkflowTdxConfigPath(_0xfb1b00);if(!_0x45b451)throw new Error(_0x34ff3e(0xbc));const _0x25e281=loadWorkflowTdxConfig(_0x45b451),_0x3f383b=a199_0x260156[_0x34ff3e(0xc3)](_0x45b451);return{'config':_0x25e281,'configPath':_0x45b451,'configDir':_0x3f383b};}export function tryFindWorkflowTdxConfig(_0x3cfbea){try{return findWorkflowTdxConfig(_0x3cfbea);}catch{return null;}}export function getWorkflowProjectDir(_0x5c22ca,_0x17fb8d=process[a199_0x5d54e7(0xb4)]()){const _0x4f9e71=a199_0x5d54e7;return a199_0x260156[_0x4f9e71(0xb6)](_0x17fb8d,WORKFLOWS_DIR,_0x5c22ca);}export function getWorkflowTdxConfigPath(_0x1ee0bc,_0x3d269c=process[a199_0x5d54e7(0xb4)]()){const _0x1f0028=a199_0x5d54e7;return a199_0x260156[_0x1f0028(0xb6)](getWorkflowProjectDir(_0x1ee0bc,_0x3d269c),TDX_CONFIG_FILE);}export function createWorkflowTdxConfigContent(_0x1a8e02,_0x12019f,_0x522ec6){const _0x39bee9=a199_0x5d54e7,_0x25706d={'workflow_project':_0x1a8e02,..._0x12019f&&{'workflow_project_id':_0x12019f},..._0x522ec6&&{'last_pulled_revision':_0x522ec6},'last_pulled_at':new Date()['toISOString']()};return JSON[_0x39bee9(0xbb)](_0x25706d,null,0x2)+'\x0a';}export function saveWorkflowTdxConfig(_0x3fa8b5,_0x1f7f90){const _0x2b0184=a199_0x5d54e7,_0x505435=JSON[_0x2b0184(0xbb)](_0x1f7f90,null,0x2)+'\x0a';writeFileSync(_0x3fa8b5,_0x505435,_0x2b0184(0xb1));}export function updateWorkflowTdxConfig(_0x18fa4c,_0x50e119){const _0xbe97c4=loadWorkflowTdxConfig(_0x18fa4c),_0x334e12={..._0xbe97c4,..._0x50e119};saveWorkflowTdxConfig(_0x18fa4c,_0x334e12);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a200_0x2f9535=a200_0x52d6;(function(_0x52dc26,_0xd96ea5){const _0x4a2a91=a200_0x52d6,_0x33de7b=_0x52dc26();while(!![]){try{const _0x33cc04=-parseInt(_0x4a2a91(0x15a))/0x1+-parseInt(_0x4a2a91(0x16f))/0x2+-parseInt(_0x4a2a91(0x16d))/0x3*(-parseInt(_0x4a2a91(0x158))/0x4)+parseInt(_0x4a2a91(0x16a))/0x5*(parseInt(_0x4a2a91(0x161))/0x6)+parseInt(_0x4a2a91(0x15f))/0x7*(-parseInt(_0x4a2a91(0x169))/0x8)+parseInt(_0x4a2a91(0x154))/0x9*(-parseInt(_0x4a2a91(0x15d))/0xa)+parseInt(_0x4a2a91(0x160))/0xb;if(_0x33cc04===_0xd96ea5)break;else _0x33de7b['push'](_0x33de7b['shift']());}catch(_0x1b782a){_0x33de7b['push'](_0x33de7b['shift']());}}}(a200_0x53e0,0x9db13));import{promises as a200_0x1a2ffd}from'fs';import a200_0x2f2548 from'path';import a200_0x41efbc from'ignore';export const WORKFLOW_FILE_EXTENSION=a200_0x2f9535(0x166);export function shouldIncludeInArchive(_0x34c5c2){const _0x195732=a200_0x2f9535;if(_0x34c5c2===_0x195732(0x157))return!![];if(_0x34c5c2['startsWith']('.'))return![];if(_0x34c5c2[_0x195732(0x155)]('~'))return![];if(_0x34c5c2===_0x195732(0x167)||_0x34c5c2===_0x195732(0x16c))return![];return!![];}function a200_0x52d6(_0x47f204,_0x803a7c){_0x47f204=_0x47f204-0x153;const _0x53e0e0=a200_0x53e0();let _0x52d670=_0x53e0e0[_0x47f204];return _0x52d670;}export function parseDigdagignore(_0x427a52){const _0x4d1d6e=a200_0x2f9535;return _0x427a52[_0x4d1d6e(0x156)]('\x0a')[_0x4d1d6e(0x153)](_0x1b1d7b=>_0x1b1d7b['trim']())['filter'](_0x230d89=>_0x230d89[_0x4d1d6e(0x15e)]>0x0&&!_0x230d89['startsWith']('#'));}export async function loadDigdagignore(_0x506757){const _0x34efe3=a200_0x2f9535,_0x53c909=a200_0x2f2548[_0x34efe3(0x164)](_0x506757,_0x34efe3(0x15b));try{const _0x282c63=await a200_0x1a2ffd[_0x34efe3(0x162)](_0x53c909,'utf-8');return parseDigdagignore(_0x282c63);}catch(_0x301135){if(_0x301135[_0x34efe3(0x168)]===_0x34efe3(0x165))return null;throw _0x301135;}}export function createIgnoreInstance(_0x5bfa4f){const _0x4d9a34=a200_0x2f9535,_0x34b8ac=a200_0x41efbc();return _0x5bfa4f&&_0x5bfa4f['length']>0x0&&_0x34b8ac[_0x4d9a34(0x159)](_0x5bfa4f),_0x34b8ac;}function a200_0x53e0(){const _0x4d176e=['add','467361XpbmVy','.digdagignore','replace','10ojcYgN','length','4858DOhkUj','18112589RPqfOz','696COppMh','readFile','slice','join','ENOENT','.dig','Thumbs.db','code','4952prSPBH','10745DioyKd','ignores','.DS_Store','283191kjAghQ','startsWith','2081398MsDTYt','map','4855419MbwdOZ','endsWith','split','.digdag','52XUiWgf'];a200_0x53e0=function(){return _0x4d176e;};return a200_0x53e0();}export function addScopedPatterns(_0x359fef,_0x556bb9,_0x2f942d){const _0x568b49=a200_0x2f9535,_0x207021=_0x556bb9[_0x568b49(0x153)](_0x4e324f=>{const _0x4e1f4a=_0x568b49;if(_0x4e324f['startsWith']('!')){const _0x4c7742=_0x4e324f[_0x4e1f4a(0x163)](0x1);if(_0x4c7742['startsWith']('/'))return'!'+_0x2f942d+_0x4c7742;return'!'+_0x2f942d+'/'+_0x4c7742;}if(_0x4e324f[_0x4e1f4a(0x16e)]('/'))return''+_0x2f942d+_0x4e324f;return _0x2f942d+'/'+_0x4e324f;});return _0x359fef[_0x568b49(0x159)](_0x207021),_0x359fef;}export function shouldIgnoreWithInstance(_0x59205c,_0x453fd1,_0x1a9406){const _0x1fb38d=a200_0x2f9535,_0x306082=_0x453fd1[_0x1fb38d(0x15c)](/\\/g,'/'),_0x2b17d5=_0x1a9406?_0x306082+'/':_0x306082;return _0x59205c[_0x1fb38d(0x16b)](_0x2b17d5);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a201_0x548483=a201_0x304d;(function(_0x3f95be,_0x5f01b9){const _0x48cf32=a201_0x304d,_0x4bf229=_0x3f95be();while(!![]){try{const _0x27a578=-parseInt(_0x48cf32(0x10f))/0x1+parseInt(_0x48cf32(0x109))/0x2*(-parseInt(_0x48cf32(0x11a))/0x3)+-parseInt(_0x48cf32(0x117))/0x4*(parseInt(_0x48cf32(0x116))/0x5)+-parseInt(_0x48cf32(0x10d))/0x6*(-parseInt(_0x48cf32(0x115))/0x7)+-parseInt(_0x48cf32(0x10e))/0x8+parseInt(_0x48cf32(0x114))/0x9*(-parseInt(_0x48cf32(0x10c))/0xa)+parseInt(_0x48cf32(0x110))/0xb;if(_0x27a578===_0x5f01b9)break;else _0x4bf229['push'](_0x4bf229['shift']());}catch(_0x39c365){_0x4bf229['push'](_0x4bf229['shift']());}}}(a201_0x2b20,0xef6d5));import*as a201_0xa0d962 from'node:fs';import{join,resolve}from'node:path';import{getGlobalCacheDir}from'../../utils/global-cache.js';function a201_0x304d(_0x2878a0,_0x1cc1df){_0x2878a0=_0x2878a0-0x108;const _0x2b20e8=a201_0x2b20();let _0x304d76=_0x2b20e8[_0x2878a0];return _0x304d76;}const LOG_FILE=join('work',a201_0x548483(0x119),a201_0x548483(0x11b));function getLogPath(){return join(getGlobalCacheDir(),LOG_FILE);}export function logAccess(_0x4a2b0e,_0xe55097){const _0x307a37=a201_0x548483,_0x137d03=getLogPath();a201_0xa0d962['mkdirSync'](join(_0x137d03,'..'),{'recursive':!![]});const _0x317b85={'ts':Date['now'](),'ws':resolve(_0x4a2b0e),'path':_0xe55097};a201_0xa0d962[_0x307a37(0x111)](_0x137d03,JSON[_0x307a37(0x10b)](_0x317b85)+'\x0a');}export function getRecentDocuments(_0x37e502,_0x1fbc9a=0x14){const _0x45b6a8=a201_0x548483,_0x1de75e=getLastAccessedMap(_0x37e502);return[..._0x1de75e['entries']()]['sort']((_0x14b7d5,_0x511467)=>_0x511467[0x1]-_0x14b7d5[0x1])[_0x45b6a8(0x108)](0x0,_0x1fbc9a)[_0x45b6a8(0x113)](([_0x5e7d69])=>_0x5e7d69);}function a201_0x2b20(){const _0x630d7e=['2KHrHev','path','stringify','158110ddpHnl','839094tgcAoS','7091664WNJMnZ','466796Txgaqf','60522231eySuHy','appendFileSync','get','map','909VOBMYV','21reiKNQ','938045KsvpcD','20hiLXYv','parse','logs','3157995VlqtEK','access.jsonl','slice'];a201_0x2b20=function(){return _0x630d7e;};return a201_0x2b20();}export function getLastAccessedMap(_0x414047){const _0x2feb4e=a201_0x548483,_0x517fe0=resolve(_0x414047),_0x159e75=new Map();let _0xe908b;try{_0xe908b=a201_0xa0d962['readFileSync'](getLogPath(),'utf-8');}catch{return _0x159e75;}for(const _0xf381c6 of _0xe908b['split']('\x0a')){if(!_0xf381c6)continue;try{const _0x1523b1=JSON[_0x2feb4e(0x118)](_0xf381c6);if(_0x1523b1['ws']!==_0x517fe0)continue;const _0x3e8514=_0x159e75[_0x2feb4e(0x112)](_0x1523b1[_0x2feb4e(0x10a)]);if(!_0x3e8514||_0x1523b1['ts']>_0x3e8514)_0x159e75['set'](_0x1523b1[_0x2feb4e(0x10a)],_0x1523b1['ts']);}catch{}}return _0x159e75;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f90a5,_0x26ce34){const _0x1820ce=a202_0x1e21,_0x2d9536=_0x1f90a5();while(!![]){try{const _0x88b699=-parseInt(_0x1820ce(0x96))/0x1*(parseInt(_0x1820ce(0x8a))/0x2)+parseInt(_0x1820ce(0x9d))/0x3+-parseInt(_0x1820ce(0x8f))/0x4*(-parseInt(_0x1820ce(0x93))/0x5)+-parseInt(_0x1820ce(0x8d))/0x6+-parseInt(_0x1820ce(0x9c))/0x7*(-parseInt(_0x1820ce(0x90))/0x8)+parseInt(_0x1820ce(0x8e))/0x9*(parseInt(_0x1820ce(0x81))/0xa)+-parseInt(_0x1820ce(0x88))/0xb;if(_0x88b699===_0x26ce34)break;else _0x2d9536['push'](_0x2d9536['shift']());}catch(_0x3c805b){_0x2d9536['push'](_0x2d9536['shift']());}}}(a202_0x2d12,0x2aee4));function a202_0x2d12(){const _0x416cb3=['map','split','number','test','push','654324BWpxyH','trim','46VYIaBq',':\x20[','endsWith','1788114OvbaKl','99VirAYv','28fPGddM','8cEIKOm','startsWith','false','149605velHek','includes','\x0a---\x0a\x0a','7747znhmHG','true','indexOf','replace','join','match','1981245TGIEPx','656775aFEpqb','entries','length','null','slice','---\x0a','110wgMeuk',':\x20[]'];a202_0x2d12=function(){return _0x416cb3;};return a202_0x2d12();}export function parseFrontmatter(_0x21c1c4){const _0x550c14=a202_0x1e21,_0x5e64cb=_0x21c1c4[_0x550c14(0x9b)](/^---\s*\n([\s\S]*?)\n---\s*\n?([\s\S]*)$/);if(!_0x5e64cb)return{'frontmatter':{},'body':_0x21c1c4[_0x550c14(0x89)]()};const _0x3e55b9=_0x5e64cb[0x1],_0x49f4da=_0x5e64cb[0x2]['trim'](),_0x46edd2=parseSimpleYaml(_0x3e55b9);return{'frontmatter':_0x46edd2,'body':_0x49f4da};}export function serializeFrontmatter(_0xbc825c,_0x10b104){const _0x5f4a0f=a202_0x1e21,_0x22fa42=[];for(const [_0x20d44a,_0x5250b4]of Object[_0x5f4a0f(0x9e)](_0xbc825c)){if(_0x5250b4===undefined||_0x5250b4===null)continue;if(Array['isArray'](_0x5250b4))_0x5250b4[_0x5f4a0f(0x9f)]===0x0?_0x22fa42[_0x5f4a0f(0x87)](_0x20d44a+_0x5f4a0f(0x82)):_0x22fa42['push'](_0x20d44a+_0x5f4a0f(0x8b)+_0x5250b4[_0x5f4a0f(0x83)](_0xda1123=>formatYamlValue(String(_0xda1123)))[_0x5f4a0f(0x9a)](',\x20')+']');else{if(typeof _0x5250b4==='boolean')_0x22fa42[_0x5f4a0f(0x87)](_0x20d44a+':\x20'+_0x5250b4);else typeof _0x5250b4===_0x5f4a0f(0x85)?_0x22fa42[_0x5f4a0f(0x87)](_0x20d44a+':\x20'+_0x5250b4):_0x22fa42[_0x5f4a0f(0x87)](_0x20d44a+':\x20'+formatYamlValue(String(_0x5250b4)));}}const _0x470c3c=_0x22fa42[_0x5f4a0f(0x9a)]('\x0a');return _0x5f4a0f(0x80)+_0x470c3c+_0x5f4a0f(0x95)+_0x10b104+'\x0a';}function formatYamlValue(_0xdf2934){const _0x58f7bf=a202_0x1e21;if(_0xdf2934['includes'](':')||_0xdf2934[_0x58f7bf(0x94)]('#')||_0xdf2934[_0x58f7bf(0x94)]('\x27')||_0xdf2934[_0x58f7bf(0x94)]('\x22')||_0xdf2934['includes']('\x0a')||_0xdf2934[_0x58f7bf(0x91)]('\x20')||_0xdf2934[_0x58f7bf(0x8c)]('\x20'))return'\x22'+_0xdf2934[_0x58f7bf(0x99)](/\\/g,'\x5c\x5c')[_0x58f7bf(0x99)](/"/g,'\x5c\x22')+'\x22';return _0xdf2934;}function parseSimpleYaml(_0x583819){const _0x2af336=a202_0x1e21,_0x4d7786={},_0x220be0=_0x583819[_0x2af336(0x84)]('\x0a');for(const _0x1a73b0 of _0x220be0){const _0x1b1d48=_0x1a73b0[_0x2af336(0x89)]();if(!_0x1b1d48||_0x1b1d48[_0x2af336(0x91)]('#'))continue;const _0x1dd5b8=_0x1b1d48[_0x2af336(0x98)](':');if(_0x1dd5b8===-0x1)continue;const _0x2867c2=_0x1b1d48['slice'](0x0,_0x1dd5b8)[_0x2af336(0x89)]();let _0x38568d=_0x1b1d48[_0x2af336(0x7f)](_0x1dd5b8+0x1)['trim']();const _0x5cc187=_0x38568d[_0x2af336(0x98)]('\x20#');_0x5cc187!==-0x1&&!_0x38568d[_0x2af336(0x91)]('\x22')&&!_0x38568d[_0x2af336(0x91)]('\x27')&&(_0x38568d=_0x38568d[_0x2af336(0x7f)](0x0,_0x5cc187)[_0x2af336(0x89)]()),_0x4d7786[_0x2867c2]=parseYamlValue(_0x38568d);}return _0x4d7786;}function parseYamlValue(_0x59af6b){const _0x5a9b3b=a202_0x1e21;if(!_0x59af6b||_0x59af6b==='~'||_0x59af6b===_0x5a9b3b(0x7e))return null;if(_0x59af6b===_0x5a9b3b(0x97))return!![];if(_0x59af6b===_0x5a9b3b(0x92))return![];if(_0x59af6b[_0x5a9b3b(0x91)]('[')&&_0x59af6b[_0x5a9b3b(0x8c)](']')){const _0x46d7e5=_0x59af6b['slice'](0x1,-0x1)[_0x5a9b3b(0x89)]();if(!_0x46d7e5)return[];return _0x46d7e5[_0x5a9b3b(0x84)](',')[_0x5a9b3b(0x83)](_0x30184d=>{const _0x217468=_0x30184d['trim']();return parseYamlScalar(_0x217468);});}if(_0x59af6b[_0x5a9b3b(0x91)]('\x22')&&_0x59af6b[_0x5a9b3b(0x8c)]('\x22'))return _0x59af6b[_0x5a9b3b(0x7f)](0x1,-0x1)['replace'](/\\"/g,'\x22')[_0x5a9b3b(0x99)](/\\\\/g,'\x5c');if(_0x59af6b['startsWith']('\x27')&&_0x59af6b['endsWith']('\x27'))return _0x59af6b['slice'](0x1,-0x1);if(/^-?\d+(\.\d+)?$/[_0x5a9b3b(0x86)](_0x59af6b))return Number(_0x59af6b);return _0x59af6b;}function a202_0x1e21(_0x456532,_0x259761){_0x456532=_0x456532-0x7e;const _0x2d12a2=a202_0x2d12();let _0x1e21b2=_0x2d12a2[_0x456532];return _0x1e21b2;}function parseYamlScalar(_0x40db9f){const _0x39f0ac=a202_0x1e21;if(_0x40db9f[_0x39f0ac(0x91)]('\x22')&&_0x40db9f[_0x39f0ac(0x8c)]('\x22'))return _0x40db9f[_0x39f0ac(0x7f)](0x1,-0x1)[_0x39f0ac(0x99)](/\\"/g,'\x22')[_0x39f0ac(0x99)](/\\\\/g,'\x5c');if(_0x40db9f[_0x39f0ac(0x91)]('\x27')&&_0x40db9f[_0x39f0ac(0x8c)]('\x27'))return _0x40db9f[_0x39f0ac(0x7f)](0x1,-0x1);if(_0x40db9f===_0x39f0ac(0x97))return!![];if(_0x40db9f==='false')return![];if(/^-?\d+(\.\d+)?$/[_0x39f0ac(0x86)](_0x40db9f))return Number(_0x40db9f);return _0x40db9f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x44b3b7=a203_0xca06;function a203_0xca06(_0x461c58,_0x174e6a){_0x461c58=_0x461c58-0x96;const _0x16bbc5=a203_0x16bb();let _0xca06d4=_0x16bbc5[_0x461c58];return _0xca06d4;}(function(_0x377b3e,_0x2f7710){const _0x408bdb=a203_0xca06,_0x5b0caf=_0x377b3e();while(!![]){try{const _0x4787c2=-parseInt(_0x408bdb(0xb4))/0x1+parseInt(_0x408bdb(0xa4))/0x2*(parseInt(_0x408bdb(0xcc))/0x3)+-parseInt(_0x408bdb(0xa7))/0x4+-parseInt(_0x408bdb(0xbb))/0x5*(parseInt(_0x408bdb(0xd9))/0x6)+-parseInt(_0x408bdb(0xbc))/0x7+-parseInt(_0x408bdb(0xa8))/0x8+parseInt(_0x408bdb(0xda))/0x9;if(_0x4787c2===_0x2f7710)break;else _0x5b0caf['push'](_0x5b0caf['shift']());}catch(_0x22d0cf){_0x5b0caf['push'](_0x5b0caf['shift']());}}}(a203_0x16bb,0xa3ea9));import{execFileSync}from'node:child_process';function a203_0x16bb(){const _0x40883a=['writeFileSync','pendingMessage','existsSync','removeRemote','main','3PvsPOj','rev-parse','--pretty=format:%H|%aI|%s','toString','HEAD','push','git','trim','relative','--git-dir','getCurrentBranch','batchTimer','pull','334050PvNVpv','5778072BAouJr','--porcelain','commitAll','ensureRepo','hasDirtyFiles','from','.gitignore','#\x20Session\x20artifacts\x0achat-*/\x0a\x0a#\x20Cache\x20(access\x20log,\x20etc.)\x0a.cache/\x0a\x0a#\x20OS\x20files\x0a.DS_Store\x0a','utf-8','username','gitWithTokenRedacted','batchMs','authedRemoteUrl','message','flush','cachedIsRepo','protocol','diff','branch','isRepo','1044004lCcDxr','remote','workspacePath','328628obDGjo','1021168kIZWyJ','get-url','split','set-url','stderr','autoCommit','clear','pipe','config','fileHistory','x-access-token','map','222396oFxbcY','pendingFiles','getRemoteUrl','commitStaged','--abbrev-ref','join','origin','5VLXLzL','33145LzxHmK','length','stdout','init','string','add','commit','remove','log','--quiet','setRemote'];a203_0x16bb=function(){return _0x40883a;};return a203_0x16bb();}import*as a203_0x26be94 from'node:fs';import*as a203_0x508b29 from'node:path';export const WORKSPACE_GITIGNORE=a203_0x44b3b7(0x97);const DEFAULT_CONFIG={'autoCommit':!![],'batchMs':0x7d0};export class WorkspaceGit{[a203_0x44b3b7(0xa6)];[a203_0x44b3b7(0xb0)];[a203_0x44b3b7(0xd7)]=null;[a203_0x44b3b7(0xb5)]=new Set();[a203_0x44b3b7(0xc8)]=null;[a203_0x44b3b7(0x9f)]=null;constructor(_0x881b,_0x1c1426){const _0x10fb71=a203_0x44b3b7;this[_0x10fb71(0xa6)]=_0x881b,this[_0x10fb71(0xb0)]={...DEFAULT_CONFIG,..._0x1c1426};}[a203_0x44b3b7(0xdd)](){const _0x3de301=a203_0x44b3b7,_0x243963=a203_0x508b29[_0x3de301(0xb9)](this[_0x3de301(0xa6)],'.git');!a203_0x26be94[_0x3de301(0xc9)](_0x243963)&&(this[_0x3de301(0xd2)](_0x3de301(0xbf)),this['cachedIsRepo']=!![]);const _0x55a744=a203_0x508b29[_0x3de301(0xb9)](this[_0x3de301(0xa6)],_0x3de301(0x96));!a203_0x26be94[_0x3de301(0xc9)](_0x55a744)&&a203_0x26be94[_0x3de301(0xc7)](_0x55a744,WORKSPACE_GITIGNORE,_0x3de301(0x98));}['isRepo'](){const _0x324ff0=a203_0x44b3b7;if(this['cachedIsRepo']!==null)return this[_0x324ff0(0x9f)];try{this['git'](_0x324ff0(0xcd),_0x324ff0(0xd5)),this[_0x324ff0(0x9f)]=!![];}catch{this[_0x324ff0(0x9f)]=![];}return this['cachedIsRepo'];}[a203_0x44b3b7(0xc2)](_0x577a60,_0x502537){const _0x2a4713=a203_0x44b3b7;if(!this[_0x2a4713(0xb0)][_0x2a4713(0xad)])return;if(!this[_0x2a4713(0xa3)]())return;const _0x1d6c48=a203_0x508b29[_0x2a4713(0xd4)](this[_0x2a4713(0xa6)],_0x577a60);this['pendingFiles'][_0x2a4713(0xc1)](_0x1d6c48),this[_0x2a4713(0xc8)]=_0x502537,this[_0x2a4713(0xd7)]&&clearTimeout(this[_0x2a4713(0xd7)]),this[_0x2a4713(0xb0)][_0x2a4713(0x9b)]===0x0?this['flush']():this[_0x2a4713(0xd7)]=setTimeout(()=>this[_0x2a4713(0x9e)](),this['config'][_0x2a4713(0x9b)]);}[a203_0x44b3b7(0x9e)](){const _0x1c0ef3=a203_0x44b3b7;if(this[_0x1c0ef3(0xb5)]['size']===0x0)return;const _0x513980=Array[_0x1c0ef3(0xdf)](this[_0x1c0ef3(0xb5)]),_0x5019cb=this[_0x1c0ef3(0xc8)]||'work:\x20update';this[_0x1c0ef3(0xb5)][_0x1c0ef3(0xae)](),this[_0x1c0ef3(0xc8)]=null;this[_0x1c0ef3(0xd7)]&&(clearTimeout(this[_0x1c0ef3(0xd7)]),this[_0x1c0ef3(0xd7)]=null);try{this[_0x1c0ef3(0xd2)](_0x1c0ef3(0xc1),'--',..._0x513980);}catch{return;}this[_0x1c0ef3(0xb7)](_0x5019cb);}[a203_0x44b3b7(0xdc)](_0x50f2dd){const _0x3789e6=a203_0x44b3b7;if(!this['config'][_0x3789e6(0xad)])return;if(!this['hasDirtyFiles']())return;try{this[_0x3789e6(0xd2)](_0x3789e6(0xc1),'-A');}catch{return;}this[_0x3789e6(0xb7)](_0x50f2dd);}[a203_0x44b3b7(0xde)](){const _0x18ec71=a203_0x44b3b7;if(!this[_0x18ec71(0xa3)]())return![];try{const _0x4230d3=this['git']('status',_0x18ec71(0xdb));return _0x4230d3[_0x18ec71(0xd3)]()[_0x18ec71(0xbd)]>0x0;}catch{return![];}}[a203_0x44b3b7(0xb1)](_0x10f2a7,_0xff6003=0xa){const _0x31db12=a203_0x44b3b7;if(!this[_0x31db12(0xa3)]())return[];const _0x12e02e=a203_0x508b29[_0x31db12(0xd4)](this[_0x31db12(0xa6)],_0x10f2a7);try{const _0x441960=this['git'](_0x31db12(0xc4),_0x31db12(0xce),'-n',String(_0xff6003),'--',_0x12e02e);if(!_0x441960[_0x31db12(0xd3)]())return[];return _0x441960[_0x31db12(0xd3)]()[_0x31db12(0xaa)]('\x0a')[_0x31db12(0xb3)](_0x4b72cb=>{const _0x24e2d7=_0x31db12,[_0x5d6fce,_0x3c1d8b,..._0x1aafa8]=_0x4b72cb[_0x24e2d7(0xaa)]('|');return{'hash':_0x5d6fce,'date':_0x3c1d8b,'message':_0x1aafa8['join']('|')};});}catch{return[];}}[a203_0x44b3b7(0xb7)](_0x3d0083){const _0x1d38e0=a203_0x44b3b7;try{try{this[_0x1d38e0(0xd2)](_0x1d38e0(0xa1),'--cached',_0x1d38e0(0xc5));return;}catch{}this[_0x1d38e0(0xd2)](_0x1d38e0(0xc2),'-m',_0x3d0083);}catch{}}[a203_0x44b3b7(0xb6)](_0x528610=a203_0x44b3b7(0xba)){const _0x2088fc=a203_0x44b3b7;if(!this[_0x2088fc(0xa3)]())return null;try{return this[_0x2088fc(0xd2)]('remote',_0x2088fc(0xa9),_0x528610)[_0x2088fc(0xd3)]()||null;}catch{return null;}}['hasRemote'](_0x480a5b='origin'){return this['getRemoteUrl'](_0x480a5b)!==null;}[a203_0x44b3b7(0xc6)](_0x8e0345,_0x24d82d=a203_0x44b3b7(0xba)){const _0x591bab=a203_0x44b3b7;!this[_0x591bab(0xa3)]()&&this['ensureRepo'](),this[_0x591bab(0xb6)](_0x24d82d)!==null?this['git'](_0x591bab(0xa5),_0x591bab(0xab),_0x24d82d,_0x8e0345):this[_0x591bab(0xd2)](_0x591bab(0xa5),_0x591bab(0xc1),_0x24d82d,_0x8e0345);}[a203_0x44b3b7(0xca)](_0x256c32=a203_0x44b3b7(0xba)){const _0x3b24fa=a203_0x44b3b7;if(!this[_0x3b24fa(0xa3)]())return;if(this['getRemoteUrl'](_0x256c32)===null)return;this[_0x3b24fa(0xd2)](_0x3b24fa(0xa5),_0x3b24fa(0xc3),_0x256c32);}[a203_0x44b3b7(0xd6)](){const _0x4a0c76=a203_0x44b3b7;if(!this[_0x4a0c76(0xa3)]())return _0x4a0c76(0xcb);try{return this['git'](_0x4a0c76(0xcd),_0x4a0c76(0xb8),_0x4a0c76(0xd0))[_0x4a0c76(0xd3)]()||_0x4a0c76(0xcb);}catch{return _0x4a0c76(0xcb);}}[a203_0x44b3b7(0xd1)](_0x35a315){const _0x267d17=a203_0x44b3b7,{remote:remote='origin',token:_0x3e094d}=_0x35a315??{},_0x3f359b=_0x35a315?.[_0x267d17(0xa2)]||this[_0x267d17(0xd6)]();if(_0x3e094d){const _0x2a3e0c=this[_0x267d17(0x9c)](remote,_0x3e094d);if(_0x2a3e0c)return this[_0x267d17(0x9a)](_0x267d17(0xd1),_0x3e094d,'-u',_0x2a3e0c,_0x3f359b);}return this[_0x267d17(0xd2)](_0x267d17(0xd1),'-u',remote,_0x3f359b);}[a203_0x44b3b7(0xd8)](_0x1919dc){const _0x57b8b0=a203_0x44b3b7,{remote:remote=_0x57b8b0(0xba),token:_0x404e6e}=_0x1919dc??{},_0x40352b=_0x1919dc?.[_0x57b8b0(0xa2)]||this[_0x57b8b0(0xd6)]();if(_0x404e6e){const _0x10708b=this[_0x57b8b0(0x9c)](remote,_0x404e6e);if(_0x10708b)return this[_0x57b8b0(0x9a)](_0x57b8b0(0xd8),_0x404e6e,_0x10708b,_0x40352b);}return this[_0x57b8b0(0xd2)](_0x57b8b0(0xd8),remote,_0x40352b);}['authedRemoteUrl'](_0x234798,_0x41fb57){const _0x4cefbc=a203_0x44b3b7,_0x143bd8=this[_0x4cefbc(0xb6)](_0x234798);if(!_0x143bd8)return null;try{const _0x3cc35e=new URL(_0x143bd8);if(_0x3cc35e[_0x4cefbc(0xa0)]!=='https:')return null;return _0x3cc35e[_0x4cefbc(0x99)]=_0x4cefbc(0xb2),_0x3cc35e['password']=_0x41fb57,_0x3cc35e[_0x4cefbc(0xcf)]();}catch{return null;}}[a203_0x44b3b7(0xd2)](..._0x4b71aa){const _0x1a3496=a203_0x44b3b7;return execFileSync(_0x1a3496(0xd2),_0x4b71aa,{'cwd':this[_0x1a3496(0xa6)],'encoding':_0x1a3496(0x98),'stdio':[_0x1a3496(0xaf),_0x1a3496(0xaf),_0x1a3496(0xaf)]});}[a203_0x44b3b7(0x9a)](_0x1e6652,_0x4e9004,..._0x24d660){const _0x150495=a203_0x44b3b7;try{return this[_0x150495(0xd2)](_0x1e6652,..._0x24d660);}catch(_0x119ea6){if(_0x119ea6 instanceof Error){const _0x3832b8=_0x3554e7=>_0x3554e7['replaceAll'](_0x4e9004,'***');_0x119ea6[_0x150495(0x9d)]=_0x3832b8(_0x119ea6[_0x150495(0x9d)]);const _0x186908=_0x119ea6;if(typeof _0x186908[_0x150495(0xac)]===_0x150495(0xc0))_0x186908[_0x150495(0xac)]=_0x3832b8(_0x186908['stderr']);if(typeof _0x186908[_0x150495(0xbe)]===_0x150495(0xc0))_0x186908[_0x150495(0xbe)]=_0x3832b8(_0x186908[_0x150495(0xbe)]);}throw _0x119ea6;}}}
|