@treasuredata/tdx 2026.9.2 → 2026.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/ai-usage-command-base.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.d.ts +11 -0
- package/dist/commands/claude-command.d.ts.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-command.js.map +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/codex-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
- package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
- package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-readiness-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-in-browser-message-command.js +1 -1
- package/dist/commands/engage-landing-page-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/engage-workspace-assignment-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/opencode-command.js +1 -1
- package/dist/commands/opencode-usage-command.js +1 -1
- package/dist/commands/p13n-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-move-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/table-deleted.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/site-mismatch.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/tools/work-create-item.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.d.ts +1 -0
- package/dist/proxy/claude-usage-tracker.d.ts.map +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/claude-usage-tracker.js.map +1 -1
- package/dist/proxy/passthrough-server.d.ts.map +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/passthrough-server.js.map +1 -1
- package/dist/proxy/sse-usage-parser.d.ts +2 -0
- package/dist/proxy/sse-usage-parser.d.ts.map +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/proxy/sse-usage-parser.js.map +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/auth-token.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-schema.js +1 -1
- package/dist/sdk/cas/cas-audience-validator.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-schema.js +1 -1
- package/dist/sdk/cas/cas-segment-validator.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/cas/validate-files.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.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/p13n-studio-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
- package/dist/sdk/engage/always-on-campaign-push.js +1 -1
- package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
- package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-readiness-workflow.js +1 -1
- package/dist/sdk/engage/campaign-readiness.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/in-browser-message-pull.js +1 -1
- package/dist/sdk/engage/in-browser-message-push.js +1 -1
- package/dist/sdk/engage/in-browser-message-validator.js +1 -1
- package/dist/sdk/engage/in-browser-message-yaml.js +1 -1
- package/dist/sdk/engage/landing-page-init.js +1 -1
- package/dist/sdk/engage/landing-page-public-asset.js +1 -1
- package/dist/sdk/engage/landing-page-pull.js +1 -1
- package/dist/sdk/engage/landing-page-push.js +1 -1
- package/dist/sdk/engage/landing-page-static-site.js +1 -1
- package/dist/sdk/engage/landing-page-validator.js +1 -1
- package/dist/sdk/engage/landing-page-workspace.js +1 -1
- package/dist/sdk/engage/landing-page-yaml.js +1 -1
- package/dist/sdk/engage/list-campaign-schema.js +1 -1
- package/dist/sdk/engage/list-campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/in-browser-message-schema.js +1 -1
- package/dist/sdk/engage/types/landing-page-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage/workspace-assignments.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.d.ts +5 -3
- package/dist/sdk/llm/model-factors.d.ts.map +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/llm/model-factors.js.map +1 -1
- package/dist/sdk/llm/user-settings.js +1 -1
- package/dist/sdk/p13n-studio-errors.js +1 -1
- package/dist/sdk/p13n-studio.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/audience-context.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/util/tree-search.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/task-graph.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/access-tracker.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/claude-code-state.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/proxy-fetch.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a23_0x4e5b3d=a23_0x2483;(function(_0x19ffe5,_0x18f4e1){const _0x3c0648=a23_0x2483,_0x143bd8=_0x19ffe5();while(!![]){try{const _0x4eeadd=parseInt(_0x3c0648(0x197))/0x1+parseInt(_0x3c0648(0x18c))/0x2+parseInt(_0x3c0648(0x187))/0x3+-parseInt(_0x3c0648(0x19a))/0x4*(parseInt(_0x3c0648(0x1a1))/0x5)+-parseInt(_0x3c0648(0x19c))/0x6+parseInt(_0x3c0648(0x199))/0x7+-parseInt(_0x3c0648(0x19e))/0x8*(parseInt(_0x3c0648(0x1a0))/0x9);if(_0x4eeadd===_0x18f4e1)break;else _0x143bd8['push'](_0x143bd8['shift']());}catch(_0x39ba2f){_0x143bd8['push'](_0x143bd8['shift']());}}}(a23_0x3050,0xa2c55));import{BaseCommand}from'./command.js';function a23_0x2483(_0x5bf2e4,_0x324a8a){_0x5bf2e4=_0x5bf2e4-0x186;const _0x3050ae=a23_0x3050();let _0x24834d=_0x3050ae[_0x5bf2e4];return _0x24834d;}function a23_0x3050(){const _0x210961=['file','1128917FXgsJR','Validation\x20complete:\x20','4780139KGzXXV','12FgOwxl','\x20\x20[','1772610ADUJqe','\x20\x20[WARNING]\x20','7029928oJVMju','warnings','27nwNQlp','38585YsitUD','errors','type','green','name','map','warn','No\x20YAML\x20files\x20found','length','details','\x20error(s)','2939130flbnzN','utf-8','bold','execute','yellow','1660028HEOWiu','Validate\x20always-on\x20campaign\x20YAML\x20files','error','red','path','forEach','Failed\x20to\x20parse','message','push','valid'];a23_0x3050=function(){return _0x210961;};return a23_0x3050();}import{findYamlFiles}from'../sdk/segment/file-discovery.js';import{readFileSync}from'fs';import a23_0x20b7b1 from'chalk';import{validateAlwaysOnCampaignDef}from'../sdk/engage/always-on-campaign-validator.js';import{parseYamlString}from'../sdk/engage/always-on-campaign-yaml.js';export class EngageAlwaysOnCampaignValidateCommand extends BaseCommand{[a23_0x4e5b3d(0x1a5)]='EngageAlwaysOnCampaignValidate';['description']=a23_0x4e5b3d(0x18d);async[a23_0x4e5b3d(0x18a)](_0x681efd){const _0x1d9d69=a23_0x4e5b3d,{options:_0x37923b,args:_0x638d7d}=_0x681efd,_0xeba46d=_0x638d7d[0x0]||'.',_0x440b76=_0x37923b['verbose']??![],_0x23ec13=await findYamlFiles(_0xeba46d);if(_0x23ec13[_0x1d9d69(0x1a9)]===0x0)return console['error'](a23_0x20b7b1['yellow'](_0x1d9d69(0x1a8))),0x0;let _0x25608a=0x0,_0x235b02=0x0;const _0x1a3c83=[];for(const _0x45a34f of _0x23ec13){try{const _0x27afb1=readFileSync(_0x45a34f,_0x1d9d69(0x188)),_0x36e490=parseYamlString(_0x27afb1);if(_0x36e490[_0x1d9d69(0x1a3)]!=='always_on_campaign')continue;const _0x351565=validateAlwaysOnCampaignDef(_0x36e490);if(_0x351565[_0x1d9d69(0x195)])_0x25608a++,_0x440b76&&console['log'](a23_0x20b7b1['green']('✓\x20'+_0x45a34f));else{_0x235b02++;const _0x34e799=_0x351565[_0x1d9d69(0x1a2)][_0x1d9d69(0x1a6)](_0x578afd=>_0x1d9d69(0x19b)+_0x578afd['code']+']\x20'+_0x578afd[_0x1d9d69(0x190)]+':\x20'+_0x578afd[_0x1d9d69(0x193)]);_0x1a3c83['push']({'file':_0x45a34f,'message':_0x351565['errors'][_0x1d9d69(0x1a9)]+_0x1d9d69(0x186),'details':_0x34e799}),console[_0x1d9d69(0x18e)](a23_0x20b7b1['red']('✗\x20'+_0x45a34f+':\x20'+_0x351565['errors'][_0x1d9d69(0x1a9)]+_0x1d9d69(0x186)));}_0x351565['warnings'][_0x1d9d69(0x1a9)]>0x0&&_0x351565[_0x1d9d69(0x19f)]['forEach'](_0x45a666=>{const _0x1ab95e=_0x1d9d69;console[_0x1ab95e(0x1a7)](a23_0x20b7b1[_0x1ab95e(0x18b)](_0x1ab95e(0x19d)+_0x45a666['path']+':\x20'+_0x45a666['message']));});}catch(_0x222ada){_0x235b02++;const _0x36a36a=_0x222ada instanceof Error?_0x222ada[_0x1d9d69(0x193)]:String(_0x222ada);_0x1a3c83[_0x1d9d69(0x194)]({'file':_0x45a34f,'message':_0x1d9d69(0x192),'details':[_0x36a36a]}),console[_0x1d9d69(0x18e)](a23_0x20b7b1[_0x1d9d69(0x18f)]('✗\x20'+_0x45a34f+':\x20'+_0x36a36a));}}return console['error'](''),console[_0x1d9d69(0x18e)](a23_0x20b7b1[_0x1d9d69(0x189)](_0x1d9d69(0x198)+a23_0x20b7b1[_0x1d9d69(0x1a4)](_0x25608a)+'\x20valid,\x20'+a23_0x20b7b1[_0x1d9d69(0x18f)](_0x235b02)+'\x20invalid')),_0x1a3c83[_0x1d9d69(0x1a9)]>0x0&&_0x440b76&&(console[_0x1d9d69(0x18e)](''),_0x1a3c83[_0x1d9d69(0x191)](_0x5aeee5=>{const _0x1d0249=_0x1d9d69;console[_0x1d0249(0x18e)](a23_0x20b7b1[_0x1d0249(0x18f)](_0x5aeee5[_0x1d0249(0x196)]+':')),_0x5aeee5[_0x1d0249(0x1aa)]['forEach'](_0x4a2f18=>console[_0x1d0249(0x18e)](_0x4a2f18));})),_0x235b02>0x0?0x1:0x0;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a24_0x250a48=a24_0x3ba6;(function(_0x4e714e,_0x2e0976){const _0x310740=a24_0x3ba6,_0x2cdba6=_0x4e714e();while(!![]){try{const _0x1eeeff=parseInt(_0x310740(0xb4))/0x1*(-parseInt(_0x310740(0xb3))/0x2)+parseInt(_0x310740(0xbc))/0x3*(parseInt(_0x310740(0xa9))/0x4)+-parseInt(_0x310740(0xc8))/0x5*(-parseInt(_0x310740(0xa6))/0x6)+-parseInt(_0x310740(0xae))/0x7+parseInt(_0x310740(0xa5))/0x8+parseInt(_0x310740(0xca))/0x9+-parseInt(_0x310740(0xbd))/0xa*(parseInt(_0x310740(0xc1))/0xb);if(_0x1eeeff===_0x2e0976)break;else _0x2cdba6['push'](_0x2cdba6['shift']());}catch(_0x377021){_0x2cdba6['push'](_0x2cdba6['shift']());}}}(a24_0x270c,0xc5d29));import{BaseCommand}from'./command.js';import{withProgressSpinner}from'../utils/spinner.js';function a24_0x3ba6(_0x492b28,_0x13ae76){_0x492b28=_0x492b28-0x95;const _0x270ca7=a24_0x270c();let _0x3ba6a6=_0x270ca7[_0x492b28];return _0x3ba6a6;}import{confirmKey,isInteractive}from'../utils/prompt.js';import{saveSessionContext,loadSessionContext}from'../core/session.js';import{tryFindTdxConfig}from'../sdk/segment/tdx-config.js';function a24_0x270c(){const _0x574647=['\x20\x20Target:\x20','counts','7826217rrNVLc','verbose','type','hasChanges','✔\x20Pulled\x20','176MXSteL','6271UOIxWE','\x0aChanges\x20to\x20\x27','\x0aError:','Write\x20','\x20=\x20','session','\x20files\x20to\x20','\x0a[Dry\x20run]\x20No\x20files\x20were\x20written','1002LZiRpY','13220KRmwUu','length','\x20\x20\x20\x20\x20\x20\x20tdx\x20engage\x20campaign\x20pull\x20--workspace\x20<name>','\x27...','8129XTOBoC','segment','\x0aOr\x20set\x20workspace\x20context\x20with:\x20tdx\x20use\x20engage_workspace\x20<name>','workspace','filter','Confirmation\x20required\x20but\x20running\x20in\x20non-interactive\x20mode','cwd','35WMWFCf','yellow','7166367QFSXMa','\x0aUsage:\x20tdx\x20engage\x20campaign\x20pull\x20<workspace-name>','diff','Workspace\x20is\x20required.','✔\x20Context\x20set:\x20','campaigns','targetDir','relativePath','Aborted.','\x20unchanged\x20files','isNew','cyan','Use\x20-y\x20or\x20--yes\x20flag\x20to\x20apply\x20changes\x20without\x20confirmation','repeat','error','green','files','Pull\x20campaigns\x20to\x20YAML\x20files','config','\x20campaigns','name','content','engage','data','\x0aPull\x20summary\x20for\x20workspace\x20\x27','workspaceName','engage_workspace','dim','absolutePath','8822976xpDmjy','509766WOuYWa','red','dirname','11536VrnbYQ','setPhase','No\x20campaigns\x20found\x20in\x20workspace\x20\x27'];a24_0x270c=function(){return _0x574647;};return a24_0x270c();}import a24_0x41384b from'chalk';import{existsSync,mkdirSync,writeFileSync}from'fs';import a24_0x8ce300 from'path';import{pullCampaigns}from'../sdk/engage/campaign-pull.js';export class EngageCampaignPullCommand extends BaseCommand{[a24_0x250a48(0x9c)]='engage:campaign:pull';['description']=a24_0x250a48(0x99);async['execute'](_0x1cc3f2){const _0x26eb2b=a24_0x250a48,{options:_0x2ed454,args:_0x2c3002,tdx:_0x1a4e40}=_0x1cc3f2,_0x5f5507=_0x2ed454,_0x50356c=await resolveWorkspaceName(_0x2c3002[0x0],_0x5f5507);if(!_0x50356c)return console[_0x26eb2b(0x96)](a24_0x41384b[_0x26eb2b(0xc9)](_0x26eb2b(0xcd))),console[_0x26eb2b(0x96)](_0x26eb2b(0xcb)),console[_0x26eb2b(0x96)](_0x26eb2b(0xbf)),console[_0x26eb2b(0x96)](_0x26eb2b(0xc3)),0x1;const _0x49ef92=await withProgressSpinner('Pulling\x20campaigns\x20from\x20\x27'+_0x50356c+_0x26eb2b(0xc0),_0x13da2b=>pullCampaigns({'engage':_0x1a4e40[_0x26eb2b(0x9e)],'segment':_0x1a4e40[_0x26eb2b(0xc2)]},_0x50356c,{'campaignName':_0x5f5507[_0x26eb2b(0x9c)],'campaignType':_0x5f5507[_0x26eb2b(0xb0)],'progress':{'update':_0x528571=>{const _0xe6e7c6=_0x26eb2b;_0x13da2b[_0xe6e7c6(0xaa)](_0x528571);}}}),{'verbose':_0x5f5507[_0x26eb2b(0xaf)]}),_0x4fc43e=_0x49ef92[_0x26eb2b(0x9f)];if(_0x4fc43e[_0x26eb2b(0xad)][_0x26eb2b(0xcf)]===0x0)return console['error'](a24_0x41384b[_0x26eb2b(0xc9)](_0x26eb2b(0xab)+_0x4fc43e['workspaceName']+'\x27')),0x0;const _0x596760=_0x4fc43e[_0x26eb2b(0x98)]['filter'](_0x4e7277=>_0x4e7277['isNew']),_0x41f703=_0x4fc43e[_0x26eb2b(0x98)][_0x26eb2b(0xc5)](_0x3b7d19=>!_0x3b7d19[_0x26eb2b(0xd4)]&&_0x3b7d19['hasChanges']),_0x382815=_0x4fc43e['files']['filter'](_0x2cf4f9=>!_0x2cf4f9[_0x26eb2b(0xd4)]&&!_0x2cf4f9[_0x26eb2b(0xb1)]);console[_0x26eb2b(0x96)](_0x26eb2b(0xa0)+_0x4fc43e[_0x26eb2b(0xa1)]+'\x27:'),console[_0x26eb2b(0x96)]('\x20\x20'+a24_0x41384b[_0x26eb2b(0xd5)](_0x4fc43e[_0x26eb2b(0xad)][_0x26eb2b(0xcf)]+_0x26eb2b(0x9b))),console[_0x26eb2b(0x96)]('\x20\x20'+a24_0x41384b[_0x26eb2b(0x97)]('+\x20'+_0x596760[_0x26eb2b(0xbe)]+'\x20new\x20files')),console[_0x26eb2b(0x96)]('\x20\x20'+a24_0x41384b['yellow']('~\x20'+_0x41f703['length']+'\x20changed\x20files')),console[_0x26eb2b(0x96)]('\x20\x20'+a24_0x41384b['dim']('=\x20'+_0x382815[_0x26eb2b(0xbe)]+_0x26eb2b(0xd3))),console['error'](_0x26eb2b(0xac)+a24_0x41384b['cyan'](_0x4fc43e[_0x26eb2b(0xd0)])+'\x0a');if(_0x41f703[_0x26eb2b(0xbe)]>0x0)for(const _0x1b2681 of _0x41f703){console[_0x26eb2b(0x96)](_0x26eb2b(0xb5)+_0x1b2681[_0x26eb2b(0xd1)]+'\x27:'),console['error']('\u2500'[_0x26eb2b(0x95)](0x3c)),console['error'](_0x1b2681[_0x26eb2b(0xcc)]),console[_0x26eb2b(0x96)]('\u2500'[_0x26eb2b(0x95)](0x3c));}if(_0x5f5507['dryRun'])return console[_0x26eb2b(0x96)](a24_0x41384b[_0x26eb2b(0xc9)](_0x26eb2b(0xbb))),0x0;if(_0x596760[_0x26eb2b(0xbe)]===0x0&&_0x41f703[_0x26eb2b(0xbe)]===0x0)return console[_0x26eb2b(0x96)](a24_0x41384b[_0x26eb2b(0x97)]('\u2714\x20All\x20files\x20are\x20up\x20to\x20date')),saveSessionContext({'engage_workspace':_0x4fc43e['workspaceName']},_0x5f5507[_0x26eb2b(0xb9)]),0x0;if(!_0x5f5507['yes']){if(!isInteractive())return console[_0x26eb2b(0x96)](a24_0x41384b[_0x26eb2b(0xa7)](_0x26eb2b(0xb6)),_0x26eb2b(0xc6)),console['error'](a24_0x41384b[_0x26eb2b(0xa3)](_0x26eb2b(0xd6))),0x1;const _0x2ea70c=await confirmKey(_0x26eb2b(0xb7)+(_0x596760[_0x26eb2b(0xbe)]+_0x41f703['length'])+'\x20files?');if(!_0x2ea70c)return console[_0x26eb2b(0x96)](a24_0x41384b[_0x26eb2b(0xc9)](_0x26eb2b(0xd2)),'-\x20no\x20files\x20written'),0x1;}for(const _0x4defa3 of _0x4fc43e[_0x26eb2b(0x98)]){if(_0x4defa3[_0x26eb2b(0xd4)]||_0x4defa3[_0x26eb2b(0xb1)]){const _0x1257fb=a24_0x8ce300[_0x26eb2b(0xa8)](_0x4defa3['absolutePath']);!existsSync(_0x1257fb)&&mkdirSync(_0x1257fb,{'recursive':!![]}),writeFileSync(_0x4defa3[_0x26eb2b(0xa4)],_0x4defa3[_0x26eb2b(0x9d)],'utf-8');}}return console[_0x26eb2b(0x96)](a24_0x41384b[_0x26eb2b(0x97)](_0x26eb2b(0xb2)+(_0x596760[_0x26eb2b(0xbe)]+_0x41f703[_0x26eb2b(0xbe)])+_0x26eb2b(0xba)+_0x4fc43e['targetDir'])),saveSessionContext({'engage_workspace':_0x4fc43e[_0x26eb2b(0xa1)]},_0x5f5507['session']),console[_0x26eb2b(0x96)](a24_0x41384b[_0x26eb2b(0x97)](_0x26eb2b(0xce)+a24_0x41384b['dim']('engage_workspace')+_0x26eb2b(0xb8)+a24_0x41384b['cyan'](_0x4fc43e[_0x26eb2b(0xa1)]))),0x0;}}async function resolveWorkspaceName(_0x3b4601,_0x3707c){const _0x1bc08c=a24_0x250a48;if(_0x3b4601)return _0x3b4601;if(_0x3707c[_0x1bc08c(0xc4)])return _0x3707c[_0x1bc08c(0xc4)];const _0xd115b9=tryFindTdxConfig(process[_0x1bc08c(0xc7)]());if(_0xd115b9?.[_0x1bc08c(0x9a)][_0x1bc08c(0xa2)])return _0xd115b9[_0x1bc08c(0x9a)][_0x1bc08c(0xa2)];const _0x12925f=loadSessionContext(_0x3707c['session']);if(_0x12925f?.['engage_workspace'])return _0x12925f[_0x1bc08c(0xa2)];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a25_0x1a1eab=a25_0x4607;function a25_0x4607(_0x32b29a,_0x3364d1){_0x32b29a=_0x32b29a-0x18b;const _0x23bcee=a25_0x23bc();let _0x460715=_0x23bcee[_0x32b29a];return _0x460715;}(function(_0x449608,_0x563f8f){const _0x49d09b=a25_0x4607,_0x140c00=_0x449608();while(!![]){try{const _0x26c7f2=parseInt(_0x49d09b(0x1e0))/0x1+parseInt(_0x49d09b(0x1b5))/0x2*(-parseInt(_0x49d09b(0x1c0))/0x3)+-parseInt(_0x49d09b(0x1cd))/0x4*(parseInt(_0x49d09b(0x196))/0x5)+parseInt(_0x49d09b(0x1c4))/0x6*(parseInt(_0x49d09b(0x1e1))/0x7)+parseInt(_0x49d09b(0x1a8))/0x8+-parseInt(_0x49d09b(0x18c))/0x9*(-parseInt(_0x49d09b(0x1aa))/0xa)+-parseInt(_0x49d09b(0x1ad))/0xb*(parseInt(_0x49d09b(0x1ce))/0xc);if(_0x26c7f2===_0x563f8f)break;else _0x140c00['push'](_0x140c00['shift']());}catch(_0x32112a){_0x140c00['push'](_0x140c00['shift']());}}}(a25_0x23bc,0x6910c));function a25_0x23bc(){const _0x4ddbd6=['dryRun','\x22.\x20Valid\x20values:\x20campaign,\x20list-campaign','setPhase','cyan','site','execute','494170zAOBLh','8239SPAGbM','✔\x20Updated\x20','\x20\x20\x20\x20\x20\x20\x20tdx\x20engage\x20campaign\x20push\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20all\x20(requires\x20tdx.json)','name','engage_workspace','applyListCampaignPushes','\x20new\x20campaigns:','Use\x20-y\x20or\x20--yes\x20to\x20apply\x20the\x20ListCampaign\x20draft\x20changes','\x0aUsage:\x20tdx\x20engage\x20campaign\x20push\x20<file.yaml>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20single\x20file','\x0aValidation\x20errors\x20in\x20','400869DwxFGN','\x0aError:\x20Confirmation\x20required\x20but\x20running\x20in\x20non-interactive\x20mode','\x20campaigns','warnings','filter','Applying\x20ListCampaign\x20changes...','engage','results','segment','\x0aPush\x20summary\x20for\x20workspace\x20\x27','1024305VPaxGn','data','Use\x20-y\x20or\x20--yes\x20flag\x20to\x20apply\x20changes\x20without\x20confirmation','errors','ListCampaign\x20files\x20must\x20have\x20type:\x20list_campaign.','Preparing\x20push\x20to\x20workspace\x20\x27','prepareListCampaignPushes','\x20ListCampaign\x20draft','workspace','✔\x20Created\x20','valid','red','engage:campaign:push','No\x20campaign\x20YAML\x20files\x20found\x20in\x20','input','dirname','dim','status','6133336HXOzGk','description','50stDnKr','No\x20ListCampaign\x20YAML\x20files\x20found\x20in\x20','created','13841267IZuYTa','session','campaign','\x20campaign\x20files','resolve','message','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','Pushing\x20campaigns...','411214udAIpO','campaignId','\x0aListCampaign\x20push\x20summary\x20for\x20workspace\x20\x27','action','Workspace\x20is\x20required.','length','\x0aOr\x20set\x20workspace\x20context\x20with:\x20tdx\x20use\x20engage_workspace\x20<name>','config','Resolving\x20references...','error','green','3UhxqSS','\x27...','create','\x20campaigns\x20to\x20update:','3138jYqxmJ','Aborted.','verbose','path','update','\x0a[Dry\x20run]\x20No\x20changes\x20were\x20applied','Push\x20','updated','pushListCampaignFiles','4xvBzRK','12tZoZOS','Found\x20','\x20\x20\x20\x20','resolveWorkspaceId','def','\x20DRAFT\x20ListCampaigns\x20to\x20update:','\x0aValidation\x20failed.\x20Fix\x20the\x20errors\x20above\x20before\x20pushing.','yes','map','campaign_type','yellow','-\x20no\x20changes\x20applied'];a25_0x23bc=function(){return _0x4ddbd6;};return a25_0x23bc();}import{BaseCommand}from'./command.js';import{withProgressSpinner}from'../utils/spinner.js';import{confirmKey,isInteractive}from'../utils/prompt.js';import{saveSessionContext,loadSessionContext}from'../core/session.js';import{tryFindTdxConfig}from'../sdk/segment/tdx-config.js';import{isYamlFile}from'../sdk/segment/file-discovery.js';import a25_0x2cb212 from'chalk';import a25_0x149dd8 from'path';import{discoverCampaignFiles,parseCampaignFile,preparePush,resolveAndBuildInputs,executePush}from'../sdk/engage/campaign-push.js';import{validateCampaignDef}from'../sdk/engage/campaign-validator.js';import{discoverListCampaignFiles}from'../sdk/engage/list-campaign-yaml.js';import{getCampaignUrl}from'../sdk/client/endpoints.js';import{hyperlink}from'../sdk/util/formatters.js';export class EngageCampaignPushCommand extends BaseCommand{[a25_0x1a1eab(0x1e4)]=a25_0x1a1eab(0x1a2);[a25_0x1a1eab(0x1a9)]=a25_0x1a1eab(0x1b3);async[a25_0x1a1eab(0x1df)](_0x4442ce){const _0x31b0b6=a25_0x1a1eab,{options:_0x264908,args:_0x15ec1b,tdx:_0x23f67c}=_0x4442ce,_0x55fbef=_0x264908,_0x5d4b92=_0x15ec1b[0x0],_0x2c74c2=_0x5d4b92?a25_0x149dd8[_0x31b0b6(0x1b1)](_0x5d4b92):undefined,_0x1a163c=_0x2c74c2?isYamlFile(_0x2c74c2):![];let _0x11b49f;if(_0x1a163c&&_0x2c74c2)_0x11b49f=a25_0x149dd8[_0x31b0b6(0x1a5)](_0x2c74c2);else _0x2c74c2?_0x11b49f=_0x2c74c2:_0x11b49f=process['cwd']();let _0x21f9fc;const _0x2c85ce=tryFindTdxConfig(_0x11b49f);_0x2c85ce?.['config'][_0x31b0b6(0x1e5)]&&(_0x21f9fc=_0x2c85ce[_0x31b0b6(0x1bc)][_0x31b0b6(0x1e5)],!_0x1a163c&&(_0x11b49f=_0x2c85ce['configDir']));_0x55fbef[_0x31b0b6(0x19e)]&&(_0x21f9fc=_0x55fbef[_0x31b0b6(0x19e)]);if(!_0x21f9fc){const _0x11b45d=loadSessionContext(_0x55fbef[_0x31b0b6(0x1ae)]);_0x11b45d?.[_0x31b0b6(0x1e5)]&&(_0x21f9fc=_0x11b45d['engage_workspace']);}if(!_0x21f9fc)return console[_0x31b0b6(0x1be)](a25_0x2cb212['yellow'](_0x31b0b6(0x1b9))),console[_0x31b0b6(0x1be)](_0x31b0b6(0x1e9)),console[_0x31b0b6(0x1be)](_0x31b0b6(0x1e3)),console['error']('\x20\x20\x20\x20\x20\x20\x20tdx\x20engage\x20campaign\x20push\x20--workspace\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20with\x20explicit\x20workspace'),console[_0x31b0b6(0x1be)](_0x31b0b6(0x1bb)),0x1;const _0x4100df=_0x55fbef['campaignType']??_0x31b0b6(0x1af);if(_0x4100df==='list-campaign')return await this[_0x31b0b6(0x1cc)](_0x4442ce,_0x21f9fc,_0x11b49f,_0x2c74c2,_0x1a163c);if(_0x4100df!==_0x31b0b6(0x1af))return console[_0x31b0b6(0x1be)]('Error:\x20Invalid\x20campaign\x20type\x20\x22'+_0x4100df+_0x31b0b6(0x1db)),0x1;let _0x23759a;_0x1a163c&&_0x2c74c2?_0x23759a=[_0x2c74c2]:_0x23759a=discoverCampaignFiles(_0x11b49f);if(_0x23759a[_0x31b0b6(0x1ba)]===0x0)return console['error'](a25_0x2cb212[_0x31b0b6(0x1d8)](_0x31b0b6(0x1a3)+_0x11b49f)),console[_0x31b0b6(0x1be)](a25_0x2cb212[_0x31b0b6(0x1a6)]('Campaign\x20YAML\x20files\x20must\x20have\x20type:\x20campaign\x20in\x20their\x20definition.')),0x1;const _0x2e9af4=_0x23759a[_0x31b0b6(0x1d6)](_0x117449=>parseCampaignFile(_0x117449,a25_0x149dd8[_0x31b0b6(0x1a5)](_0x117449))),_0x53e795=_0x2e9af4[_0x31b0b6(0x1ba)]===0x1?'1\x20campaign\x20file:\x20'+_0x2e9af4[0x0][_0x31b0b6(0x1d2)][_0x31b0b6(0x1e4)]:_0x2e9af4[_0x31b0b6(0x1ba)]+_0x31b0b6(0x1b0);console[_0x31b0b6(0x1be)](_0x31b0b6(0x1cf)+a25_0x2cb212[_0x31b0b6(0x1dd)](_0x53e795));let _0x3e4d43=![];for(const _0x32f9da of _0x2e9af4){const _0x6f798e=validateCampaignDef(_0x32f9da['def']);if(!_0x6f798e[_0x31b0b6(0x1a0)]){_0x3e4d43=!![],console[_0x31b0b6(0x1be)](a25_0x2cb212['red'](_0x31b0b6(0x18b)+_0x32f9da['relativePath']+':'));for(const _0x596dca of _0x6f798e[_0x31b0b6(0x199)]){console['error']('\x20\x20'+a25_0x2cb212[_0x31b0b6(0x1a1)]('✗')+'\x20'+_0x596dca[_0x31b0b6(0x1c7)]+':\x20'+_0x596dca[_0x31b0b6(0x1b2)]);}}for(const _0x3633af of _0x6f798e[_0x31b0b6(0x18f)]){console[_0x31b0b6(0x1be)]('\x20\x20'+a25_0x2cb212[_0x31b0b6(0x1d8)]('⚠')+'\x20'+_0x3633af[_0x31b0b6(0x1c7)]+':\x20'+_0x3633af[_0x31b0b6(0x1b2)]);}}if(_0x3e4d43)return console['error'](a25_0x2cb212['red'](_0x31b0b6(0x1d4))),0x1;const _0x3fca03=await _0x23f67c['engage'][_0x31b0b6(0x1d1)](_0x21f9fc),_0x539415=await withProgressSpinner(_0x31b0b6(0x19b)+_0x21f9fc+_0x31b0b6(0x1c1),_0x5216ba=>preparePush({'engage':_0x23f67c[_0x31b0b6(0x192)],'segment':_0x23f67c[_0x31b0b6(0x194)]},_0x2e9af4,_0x3fca03,{'progress':{'update':_0x114ebd=>_0x5216ba[_0x31b0b6(0x1dc)](_0x114ebd)}}),{'verbose':_0x55fbef['verbose']}),_0x597199=_0x539415[_0x31b0b6(0x197)];await withProgressSpinner(_0x31b0b6(0x1bd),_0x390bff=>resolveAndBuildInputs({'engage':_0x23f67c[_0x31b0b6(0x192)],'segment':_0x23f67c[_0x31b0b6(0x194)]},_0x597199,_0x3fca03,{'progress':{'update':_0x10db46=>_0x390bff[_0x31b0b6(0x1dc)](_0x10db46)}}),{'verbose':_0x55fbef[_0x31b0b6(0x1c6)]});const _0x5b79b2=_0x597199['filter'](_0xac4252=>_0xac4252[_0x31b0b6(0x1b8)]===_0x31b0b6(0x1c2)),_0x45e26c=_0x597199[_0x31b0b6(0x190)](_0x4438f8=>_0x4438f8[_0x31b0b6(0x1b8)]==='update');console[_0x31b0b6(0x1be)](_0x31b0b6(0x195)+_0x21f9fc+'\x27:');if(_0x5b79b2[_0x31b0b6(0x1ba)]>0x0){console[_0x31b0b6(0x1be)]('\x20\x20'+a25_0x2cb212[_0x31b0b6(0x1bf)]('+\x20'+_0x5b79b2[_0x31b0b6(0x1ba)]+_0x31b0b6(0x1e7)));for(const _0x37657d of _0x5b79b2){console[_0x31b0b6(0x1be)](_0x31b0b6(0x1d0)+a25_0x2cb212[_0x31b0b6(0x1bf)]('+')+'\x20'+_0x37657d['def']['name']+'\x20('+_0x37657d[_0x31b0b6(0x1d2)][_0x31b0b6(0x1d7)]+')');}}if(_0x45e26c['length']>0x0){console[_0x31b0b6(0x1be)]('\x20\x20'+a25_0x2cb212[_0x31b0b6(0x1d8)]('~\x20'+_0x45e26c[_0x31b0b6(0x1ba)]+_0x31b0b6(0x1c3)));for(const _0x474f46 of _0x45e26c){console[_0x31b0b6(0x1be)](_0x31b0b6(0x1d0)+a25_0x2cb212[_0x31b0b6(0x1d8)]('~')+'\x20'+_0x474f46[_0x31b0b6(0x1d2)]['name']+'\x20('+_0x474f46[_0x31b0b6(0x1d2)][_0x31b0b6(0x1d7)]+')');}}if(_0x5b79b2[_0x31b0b6(0x1ba)]===0x0&&_0x45e26c[_0x31b0b6(0x1ba)]===0x0)return console[_0x31b0b6(0x1be)](a25_0x2cb212[_0x31b0b6(0x1bf)]('\u2714\x20All\x20campaigns\x20are\x20up\x20to\x20date')),0x0;if(_0x55fbef[_0x31b0b6(0x1da)])return console[_0x31b0b6(0x1be)](a25_0x2cb212[_0x31b0b6(0x1d8)](_0x31b0b6(0x1c9))),0x0;if(!_0x55fbef[_0x31b0b6(0x1d5)]){if(!isInteractive())return console['error'](a25_0x2cb212[_0x31b0b6(0x1a1)]('\x0aError:'),'Confirmation\x20required\x20but\x20running\x20in\x20non-interactive\x20mode'),console[_0x31b0b6(0x1be)](a25_0x2cb212['dim'](_0x31b0b6(0x198))),0x1;const _0x10ffb3=await confirmKey(_0x31b0b6(0x1ca)+(_0x5b79b2[_0x31b0b6(0x1ba)]+_0x45e26c[_0x31b0b6(0x1ba)])+'\x20campaigns?');if(!_0x10ffb3)return console['error'](a25_0x2cb212['yellow'](_0x31b0b6(0x1c5)),_0x31b0b6(0x1d9)),0x1;}const _0x4a37df=await withProgressSpinner(_0x31b0b6(0x1b4),_0x1586e5=>executePush({'engage':_0x23f67c[_0x31b0b6(0x192)],'segment':_0x23f67c[_0x31b0b6(0x194)]},_0x597199,{'progress':{'update':_0x5205bf=>_0x1586e5['setPhase'](_0x5205bf)}}),{'verbose':_0x55fbef[_0x31b0b6(0x1c6)]}),_0x5604a4=_0x4a37df['data'];for(const _0x1822fb of _0x5604a4[_0x31b0b6(0x193)]){if(_0x1822fb[_0x31b0b6(0x1b6)]&&(_0x1822fb[_0x31b0b6(0x1b8)]===_0x31b0b6(0x1ac)||_0x1822fb['action']===_0x31b0b6(0x1cb))){const _0x5ad23a=getCampaignUrl(_0x55fbef[_0x31b0b6(0x1de)],_0x3fca03,_0x1822fb[_0x31b0b6(0x1b6)]),_0x2dd139=_0x1822fb[_0x31b0b6(0x1b8)]===_0x31b0b6(0x1ac)?'+':'~',_0x2a3d9a=_0x1822fb[_0x31b0b6(0x1b8)]==='created'?a25_0x2cb212[_0x31b0b6(0x1bf)](_0x2dd139):a25_0x2cb212[_0x31b0b6(0x1d8)](_0x2dd139);console[_0x31b0b6(0x1be)]('\x20\x20'+_0x2a3d9a+'\x20'+hyperlink(_0x1822fb[_0x31b0b6(0x1e4)],_0x5ad23a)+'\x20'+a25_0x2cb212[_0x31b0b6(0x1a6)](_0x5ad23a));}}_0x5604a4[_0x31b0b6(0x1ac)]>0x0&&console[_0x31b0b6(0x1be)](a25_0x2cb212['green'](_0x31b0b6(0x19f)+_0x5604a4[_0x31b0b6(0x1ac)]+_0x31b0b6(0x18e)));_0x5604a4[_0x31b0b6(0x1cb)]>0x0&&console['error'](a25_0x2cb212[_0x31b0b6(0x1bf)](_0x31b0b6(0x1e2)+_0x5604a4[_0x31b0b6(0x1cb)]+'\x20campaigns'));if(_0x5604a4['errors'][_0x31b0b6(0x1ba)]>0x0){console[_0x31b0b6(0x1be)](a25_0x2cb212[_0x31b0b6(0x1a1)]('✘\x20'+_0x5604a4['errors'][_0x31b0b6(0x1ba)]+'\x20errors:'));for(const _0x28cc25 of _0x5604a4[_0x31b0b6(0x199)]){console[_0x31b0b6(0x1be)]('\x20\x20'+a25_0x2cb212[_0x31b0b6(0x1a1)](_0x28cc25[_0x31b0b6(0x1e4)])+':\x20'+_0x28cc25[_0x31b0b6(0x1be)]);}}return saveSessionContext({'engage_workspace':_0x21f9fc},_0x55fbef[_0x31b0b6(0x1ae)]),_0x5604a4[_0x31b0b6(0x199)][_0x31b0b6(0x1ba)]>0x0?0x1:0x0;}async[a25_0x1a1eab(0x1cc)](_0x46bcde,_0x17cd5f,_0x2aef48,_0x1ab30c,_0x5cf181){const _0xe824b=a25_0x1a1eab,{options:_0xc79ceb,tdx:_0x6b32a8}=_0x46bcde,_0x428dd7=_0xc79ceb,_0x3db6f6=_0x5cf181&&_0x1ab30c?[_0x1ab30c]:discoverListCampaignFiles(_0x2aef48);if(_0x3db6f6[_0xe824b(0x1ba)]===0x0)return console['error'](a25_0x2cb212['yellow'](_0xe824b(0x1ab)+_0x2aef48)),console['error'](a25_0x2cb212[_0xe824b(0x1a6)](_0xe824b(0x19a))),0x1;const _0x3f69ad=await _0x6b32a8[_0xe824b(0x192)]['resolveWorkspaceId'](_0x17cd5f),_0x9aeb7a=await withProgressSpinner('Preparing\x20ListCampaign\x20push...',()=>_0x6b32a8[_0xe824b(0x192)][_0xe824b(0x19c)](_0x3f69ad,_0x3db6f6),{'verbose':_0xc79ceb[_0xe824b(0x1c6)]}),_0x3222f9=_0x9aeb7a['data'],_0x2db61e=_0x3222f9[_0xe824b(0x190)](_0x4c0314=>_0x4c0314[_0xe824b(0x1b8)]===_0xe824b(0x1c2)),_0xf1c704=_0x3222f9[_0xe824b(0x190)](_0x27020b=>_0x27020b[_0xe824b(0x1b8)]===_0xe824b(0x1c8));console['error'](_0xe824b(0x1b7)+_0x17cd5f+'\x27:');if(_0x2db61e[_0xe824b(0x1ba)]>0x0){console['error']('\x20\x20'+a25_0x2cb212['green']('+\x20'+_0x2db61e[_0xe824b(0x1ba)]+'\x20new\x20ListCampaigns:'));for(const _0xce2a27 of _0x2db61e)console['error'](_0xe824b(0x1d0)+a25_0x2cb212['green']('+')+'\x20'+_0xce2a27[_0xe824b(0x1a4)][_0xe824b(0x1e4)]);}if(_0xf1c704[_0xe824b(0x1ba)]>0x0){console[_0xe824b(0x1be)]('\x20\x20'+a25_0x2cb212[_0xe824b(0x1d8)]('~\x20'+_0xf1c704[_0xe824b(0x1ba)]+_0xe824b(0x1d3)));for(const _0x5deffa of _0xf1c704)console[_0xe824b(0x1be)](_0xe824b(0x1d0)+a25_0x2cb212[_0xe824b(0x1d8)]('~')+'\x20'+_0x5deffa[_0xe824b(0x1a4)]['name']);}if(_0x428dd7[_0xe824b(0x1da)])return console[_0xe824b(0x1be)](a25_0x2cb212[_0xe824b(0x1d8)]('\x0a[Dry\x20run]\x20No\x20changes\x20were\x20applied')),0x0;if(!_0x428dd7[_0xe824b(0x1d5)]){if(!isInteractive())return console[_0xe824b(0x1be)](a25_0x2cb212[_0xe824b(0x1a1)](_0xe824b(0x18d))),console[_0xe824b(0x1be)](a25_0x2cb212['dim'](_0xe824b(0x1e8))),0x1;const _0x450a52=await confirmKey(_0xe824b(0x1ca)+_0x3222f9[_0xe824b(0x1ba)]+_0xe824b(0x19d)+(_0x3222f9[_0xe824b(0x1ba)]===0x1?'':'s')+'?');if(!_0x450a52)return console[_0xe824b(0x1be)](a25_0x2cb212[_0xe824b(0x1d8)](_0xe824b(0x1c5)),_0xe824b(0x1d9)),0x1;}const _0x1624f3=await withProgressSpinner(_0xe824b(0x191),()=>_0x6b32a8['engage'][_0xe824b(0x1e6)](_0x3222f9),{'verbose':_0xc79ceb['verbose']});for(const _0x393faf of _0x1624f3['data']){const _0x31fcd7=_0x393faf[_0xe824b(0x1b8)]==='created'?a25_0x2cb212['green']('+'):a25_0x2cb212[_0xe824b(0x1d8)]('~');console[_0xe824b(0x1be)]('\x20\x20'+_0x31fcd7+'\x20'+_0x393faf['campaign'][_0xe824b(0x1e4)]+'\x20('+_0x393faf[_0xe824b(0x1af)][_0xe824b(0x1a7)]+')');}return saveSessionContext({'engage_workspace':_0x17cd5f},_0xc79ceb[_0xe824b(0x1ae)]),0x0;}}
|
|
1
|
+
const a25_0x408bfb=a25_0x48ea;(function(_0x3cd534,_0xa79eb){const _0x32f452=a25_0x48ea,_0xfaf3b7=_0x3cd534();while(!![]){try{const _0x3d3fb2=parseInt(_0x32f452(0x100))/0x1+parseInt(_0x32f452(0x11a))/0x2+-parseInt(_0x32f452(0xfe))/0x3+-parseInt(_0x32f452(0xfb))/0x4*(-parseInt(_0x32f452(0xf8))/0x5)+-parseInt(_0x32f452(0xf6))/0x6*(parseInt(_0x32f452(0x116))/0x7)+parseInt(_0x32f452(0xe8))/0x8*(parseInt(_0x32f452(0x108))/0x9)+-parseInt(_0x32f452(0x129))/0xa;if(_0x3d3fb2===_0xa79eb)break;else _0xfaf3b7['push'](_0xfaf3b7['shift']());}catch(_0x348a40){_0xfaf3b7['push'](_0xfaf3b7['shift']());}}}(a25_0x5c17,0x7c50c));import{BaseCommand}from'./command.js';import{withProgressSpinner}from'../utils/spinner.js';import{confirmKey,isInteractive}from'../utils/prompt.js';import{saveSessionContext,loadSessionContext}from'../core/session.js';import{tryFindTdxConfig}from'../sdk/segment/tdx-config.js';import{isYamlFile}from'../sdk/segment/file-discovery.js';import a25_0x5a8da2 from'chalk';import a25_0x4c3a5a from'path';import{discoverCampaignFiles,parseCampaignFile,preparePush,resolveAndBuildInputs,executePush}from'../sdk/engage/campaign-push.js';import{validateCampaignDef}from'../sdk/engage/campaign-validator.js';function a25_0x5c17(){const _0x2675f6=['resolve','length','create','workspace','status','error','config','campaignType','10027160rbQiGC','\x0aError:','Error:\x20Invalid\x20campaign\x20type\x20\x22','data','cyan','campaign_type','\x0aListCampaign\x20push\x20summary\x20for\x20workspace\x20\x27','campaign','\x20campaigns\x20to\x20update:','description','campaignId','verbose','def','created','\x20new\x20campaigns:','engage','warnings','Push\x20','dim','\x22.\x20Valid\x20values:\x20campaign,\x20list-campaign','Use\x20-y\x20or\x20--yes\x20flag\x20to\x20apply\x20changes\x20without\x20confirmation','dirname','\x20new\x20ListCampaigns:','filter','\x20campaigns?','setPhase','75464RCxfna','\x20campaign\x20files','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','input','\x0aOr\x20set\x20workspace\x20context\x20with:\x20tdx\x20use\x20engage_workspace\x20<name>','Applying\x20ListCampaign\x20changes...','\x20\x20\x20\x20\x20\x20\x20tdx\x20engage\x20campaign\x20push\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20all\x20(requires\x20tdx.json)','errors','\x0aPush\x20summary\x20for\x20workspace\x20\x27','\x20\x20\x20\x20','Campaign\x20YAML\x20files\x20must\x20have\x20type:\x20campaign\x20in\x20their\x20definition.','action','\x0aValidation\x20errors\x20in\x20','segment','413514DgxlZk','pushListCampaignFiles','13430xqfyFf','No\x20ListCampaign\x20YAML\x20files\x20found\x20in\x20','\x20errors:','1204uDuyPJ','list-campaign','\x0aValidation\x20failed.\x20Fix\x20the\x20errors\x20above\x20before\x20pushing.','1733538sTUfgb','site','739640YpyCUC','session','red','yellow','map','update','\x20campaigns','updated','477fCbtME','green','-\x20no\x20changes\x20applied','✔\x20All\x20campaigns\x20are\x20up\x20to\x20date','✔\x20Updated\x20','Use\x20-y\x20or\x20--yes\x20to\x20apply\x20the\x20ListCampaign\x20draft\x20changes','\x0aUsage:\x20tdx\x20engage\x20campaign\x20push\x20<file.yaml>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20single\x20file','applyListCampaignPushes','dryRun','relativePath','message','prepareListCampaignPushes','engage_workspace','resolveWorkspaceId','56aACHUD','Preparing\x20push\x20to\x20workspace\x20\x27','Aborted.','cwd','1186070uAMegZ','✔\x20Created\x20','engage:campaign:push','path','execute','\x20ListCampaign\x20draft','name'];a25_0x5c17=function(){return _0x2675f6;};return a25_0x5c17();}import{discoverListCampaignFiles}from'../sdk/engage/list-campaign-yaml.js';import{getCampaignUrl}from'../sdk/client/endpoints.js';function a25_0x48ea(_0x5ccbd9,_0x5eaf01){_0x5ccbd9=_0x5ccbd9-0xd5;const _0x5c1783=a25_0x5c17();let _0x48ea9c=_0x5c1783[_0x5ccbd9];return _0x48ea9c;}import{hyperlink}from'../sdk/util/formatters.js';export class EngageCampaignPushCommand extends BaseCommand{[a25_0x408bfb(0x120)]=a25_0x408bfb(0x11c);[a25_0x408bfb(0xd7)]=a25_0x408bfb(0xea);async[a25_0x408bfb(0x11e)](_0x19d6cb){const _0x521a59=a25_0x408bfb,{options:_0x3f2280,args:_0x1404b7,tdx:_0x175d96}=_0x19d6cb,_0x562d9b=_0x3f2280,_0xbe6a5e=_0x1404b7[0x0],_0x588b88=_0xbe6a5e?a25_0x4c3a5a[_0x521a59(0x121)](_0xbe6a5e):undefined,_0x6bdaef=_0x588b88?isYamlFile(_0x588b88):![];let _0xe8f0a4;if(_0x6bdaef&&_0x588b88)_0xe8f0a4=a25_0x4c3a5a[_0x521a59(0xe3)](_0x588b88);else _0x588b88?_0xe8f0a4=_0x588b88:_0xe8f0a4=process[_0x521a59(0x119)]();let _0x5ef401;const _0x350243=tryFindTdxConfig(_0xe8f0a4);_0x350243?.['config']['engage_workspace']&&(_0x5ef401=_0x350243[_0x521a59(0x127)][_0x521a59(0x114)],!_0x6bdaef&&(_0xe8f0a4=_0x350243['configDir']));_0x562d9b[_0x521a59(0x124)]&&(_0x5ef401=_0x562d9b[_0x521a59(0x124)]);if(!_0x5ef401){const _0x50247e=loadSessionContext(_0x562d9b[_0x521a59(0x101)]);_0x50247e?.[_0x521a59(0x114)]&&(_0x5ef401=_0x50247e[_0x521a59(0x114)]);}if(!_0x5ef401)return console['error'](a25_0x5a8da2[_0x521a59(0x103)]('Workspace\x20is\x20required.')),console['error'](_0x521a59(0x10e)),console[_0x521a59(0x126)](_0x521a59(0xee)),console[_0x521a59(0x126)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20engage\x20campaign\x20push\x20--workspace\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20with\x20explicit\x20workspace'),console['error'](_0x521a59(0xec)),0x1;const _0x1d4bbf=_0x562d9b[_0x521a59(0x128)]??_0x521a59(0xd5);if(_0x1d4bbf===_0x521a59(0xfc))return await this[_0x521a59(0xf7)](_0x19d6cb,_0x5ef401,_0xe8f0a4,_0x588b88,_0x6bdaef);if(_0x1d4bbf!==_0x521a59(0xd5))return console[_0x521a59(0x126)](_0x521a59(0x12b)+_0x1d4bbf+_0x521a59(0xe1)),0x1;let _0xe67aa1;_0x6bdaef&&_0x588b88?_0xe67aa1=[_0x588b88]:_0xe67aa1=discoverCampaignFiles(_0xe8f0a4);if(_0xe67aa1[_0x521a59(0x122)]===0x0)return console['error'](a25_0x5a8da2['yellow']('No\x20campaign\x20YAML\x20files\x20found\x20in\x20'+_0xe8f0a4)),console[_0x521a59(0x126)](a25_0x5a8da2[_0x521a59(0xe0)](_0x521a59(0xf2))),0x1;const _0x1955d4=_0xe67aa1[_0x521a59(0x104)](_0x25f0a5=>parseCampaignFile(_0x25f0a5,a25_0x4c3a5a[_0x521a59(0xe3)](_0x25f0a5))),_0x47b65a=_0x1955d4[_0x521a59(0x122)]===0x1?'1\x20campaign\x20file:\x20'+_0x1955d4[0x0]['def'][_0x521a59(0x120)]:_0x1955d4[_0x521a59(0x122)]+_0x521a59(0xe9);console['error']('Found\x20'+a25_0x5a8da2[_0x521a59(0x12d)](_0x47b65a));let _0x2af661=![];for(const _0x310a93 of _0x1955d4){const _0x1fe625=validateCampaignDef(_0x310a93[_0x521a59(0xda)]);if(!_0x1fe625['valid']){_0x2af661=!![],console[_0x521a59(0x126)](a25_0x5a8da2[_0x521a59(0x102)](_0x521a59(0xf4)+_0x310a93[_0x521a59(0x111)]+':'));for(const _0x3d88e3 of _0x1fe625[_0x521a59(0xef)]){console[_0x521a59(0x126)]('\x20\x20'+a25_0x5a8da2[_0x521a59(0x102)]('✗')+'\x20'+_0x3d88e3[_0x521a59(0x11d)]+':\x20'+_0x3d88e3[_0x521a59(0x112)]);}}for(const _0x1d8be1 of _0x1fe625[_0x521a59(0xde)]){console[_0x521a59(0x126)]('\x20\x20'+a25_0x5a8da2[_0x521a59(0x103)]('⚠')+'\x20'+_0x1d8be1[_0x521a59(0x11d)]+':\x20'+_0x1d8be1[_0x521a59(0x112)]);}}if(_0x2af661)return console['error'](a25_0x5a8da2[_0x521a59(0x102)](_0x521a59(0xfd))),0x1;const _0x1a76c1=await _0x175d96['engage'][_0x521a59(0x115)](_0x5ef401),_0x52b3bb=await withProgressSpinner(_0x521a59(0x117)+_0x5ef401+'\x27...',_0x267408=>preparePush({'engage':_0x175d96[_0x521a59(0xdd)],'segment':_0x175d96[_0x521a59(0xf5)]},_0x1955d4,_0x1a76c1,{'progress':{'update':_0x278811=>_0x267408['setPhase'](_0x278811)}}),{'verbose':_0x562d9b[_0x521a59(0xd9)]}),_0x5af9d9=_0x52b3bb['data'];await withProgressSpinner('Resolving\x20references...',_0x4fdcfc=>resolveAndBuildInputs({'engage':_0x175d96[_0x521a59(0xdd)],'segment':_0x175d96['segment']},_0x5af9d9,_0x1a76c1,{'progress':{'update':_0xb6376d=>_0x4fdcfc[_0x521a59(0xe7)](_0xb6376d)}}),{'verbose':_0x562d9b['verbose']});const _0x1deba3=_0x5af9d9[_0x521a59(0xe5)](_0x818d0=>_0x818d0[_0x521a59(0xf3)]===_0x521a59(0x123)),_0x313dfc=_0x5af9d9[_0x521a59(0xe5)](_0x4e9fd6=>_0x4e9fd6[_0x521a59(0xf3)]===_0x521a59(0x105));console[_0x521a59(0x126)](_0x521a59(0xf0)+_0x5ef401+'\x27:');if(_0x1deba3[_0x521a59(0x122)]>0x0){console[_0x521a59(0x126)]('\x20\x20'+a25_0x5a8da2[_0x521a59(0x109)]('+\x20'+_0x1deba3[_0x521a59(0x122)]+_0x521a59(0xdc)));for(const _0xc45e12 of _0x1deba3){console[_0x521a59(0x126)]('\x20\x20\x20\x20'+a25_0x5a8da2[_0x521a59(0x109)]('+')+'\x20'+_0xc45e12[_0x521a59(0xda)][_0x521a59(0x120)]+'\x20('+_0xc45e12[_0x521a59(0xda)][_0x521a59(0x12e)]+')');}}if(_0x313dfc[_0x521a59(0x122)]>0x0){console[_0x521a59(0x126)]('\x20\x20'+a25_0x5a8da2[_0x521a59(0x103)]('~\x20'+_0x313dfc[_0x521a59(0x122)]+_0x521a59(0xd6)));for(const _0x50168d of _0x313dfc){console[_0x521a59(0x126)](_0x521a59(0xf1)+a25_0x5a8da2[_0x521a59(0x103)]('~')+'\x20'+_0x50168d[_0x521a59(0xda)][_0x521a59(0x120)]+'\x20('+_0x50168d['def'][_0x521a59(0x12e)]+')');}}if(_0x1deba3['length']===0x0&&_0x313dfc[_0x521a59(0x122)]===0x0)return console[_0x521a59(0x126)](a25_0x5a8da2[_0x521a59(0x109)](_0x521a59(0x10b))),0x0;if(_0x562d9b[_0x521a59(0x110)])return console[_0x521a59(0x126)](a25_0x5a8da2[_0x521a59(0x103)]('\x0a[Dry\x20run]\x20No\x20changes\x20were\x20applied')),0x0;if(!_0x562d9b['yes']){if(!isInteractive())return console['error'](a25_0x5a8da2[_0x521a59(0x102)](_0x521a59(0x12a)),'Confirmation\x20required\x20but\x20running\x20in\x20non-interactive\x20mode'),console['error'](a25_0x5a8da2[_0x521a59(0xe0)](_0x521a59(0xe2))),0x1;const _0x54501f=await confirmKey('Push\x20'+(_0x1deba3[_0x521a59(0x122)]+_0x313dfc[_0x521a59(0x122)])+_0x521a59(0xe6));if(!_0x54501f)return console['error'](a25_0x5a8da2[_0x521a59(0x103)](_0x521a59(0x118)),_0x521a59(0x10a)),0x1;}const _0x268468=await withProgressSpinner('Pushing\x20campaigns...',_0x3afab3=>executePush({'engage':_0x175d96[_0x521a59(0xdd)],'segment':_0x175d96[_0x521a59(0xf5)]},_0x5af9d9,{'progress':{'update':_0x32ae33=>_0x3afab3[_0x521a59(0xe7)](_0x32ae33)}}),{'verbose':_0x562d9b['verbose']}),_0x54e069=_0x268468['data'];for(const _0x9e19ee of _0x54e069['results']){if(_0x9e19ee[_0x521a59(0xd8)]&&(_0x9e19ee[_0x521a59(0xf3)]===_0x521a59(0xdb)||_0x9e19ee[_0x521a59(0xf3)]==='updated')){const _0x392358=getCampaignUrl(_0x562d9b[_0x521a59(0xff)],_0x1a76c1,_0x9e19ee[_0x521a59(0xd8)]),_0x1b65ff=_0x9e19ee[_0x521a59(0xf3)]===_0x521a59(0xdb)?'+':'~',_0x28a41a=_0x9e19ee[_0x521a59(0xf3)]===_0x521a59(0xdb)?a25_0x5a8da2['green'](_0x1b65ff):a25_0x5a8da2['yellow'](_0x1b65ff);console[_0x521a59(0x126)]('\x20\x20'+_0x28a41a+'\x20'+hyperlink(_0x9e19ee['name'],_0x392358)+'\x20'+a25_0x5a8da2[_0x521a59(0xe0)](_0x392358));}}_0x54e069[_0x521a59(0xdb)]>0x0&&console[_0x521a59(0x126)](a25_0x5a8da2[_0x521a59(0x109)](_0x521a59(0x11b)+_0x54e069['created']+_0x521a59(0x106)));_0x54e069[_0x521a59(0x107)]>0x0&&console['error'](a25_0x5a8da2['green'](_0x521a59(0x10c)+_0x54e069[_0x521a59(0x107)]+_0x521a59(0x106)));if(_0x54e069[_0x521a59(0xef)][_0x521a59(0x122)]>0x0){console[_0x521a59(0x126)](a25_0x5a8da2[_0x521a59(0x102)]('✘\x20'+_0x54e069[_0x521a59(0xef)][_0x521a59(0x122)]+_0x521a59(0xfa)));for(const _0x48f9f0 of _0x54e069[_0x521a59(0xef)]){console[_0x521a59(0x126)]('\x20\x20'+a25_0x5a8da2['red'](_0x48f9f0[_0x521a59(0x120)])+':\x20'+_0x48f9f0[_0x521a59(0x126)]);}}return saveSessionContext({'engage_workspace':_0x5ef401},_0x562d9b[_0x521a59(0x101)]),_0x54e069[_0x521a59(0xef)][_0x521a59(0x122)]>0x0?0x1:0x0;}async[a25_0x408bfb(0xf7)](_0x38da9f,_0x3c28fd,_0x40f1ce,_0x29426b,_0x33260e){const _0x2096a5=a25_0x408bfb,{options:_0x402baf,tdx:_0x4ce406}=_0x38da9f,_0x4d07b5=_0x402baf,_0x3bfcfb=_0x33260e&&_0x29426b?[_0x29426b]:discoverListCampaignFiles(_0x40f1ce);if(_0x3bfcfb['length']===0x0)return console[_0x2096a5(0x126)](a25_0x5a8da2[_0x2096a5(0x103)](_0x2096a5(0xf9)+_0x40f1ce)),console[_0x2096a5(0x126)](a25_0x5a8da2[_0x2096a5(0xe0)]('ListCampaign\x20files\x20must\x20have\x20type:\x20list_campaign.')),0x1;const _0x4689ca=await _0x4ce406['engage'][_0x2096a5(0x115)](_0x3c28fd),_0x33efe1=await withProgressSpinner('Preparing\x20ListCampaign\x20push...',()=>_0x4ce406[_0x2096a5(0xdd)][_0x2096a5(0x113)](_0x4689ca,_0x3bfcfb),{'verbose':_0x402baf['verbose']}),_0x253987=_0x33efe1[_0x2096a5(0x12c)],_0x5918b5=_0x253987[_0x2096a5(0xe5)](_0x549448=>_0x549448[_0x2096a5(0xf3)]===_0x2096a5(0x123)),_0x471ecf=_0x253987[_0x2096a5(0xe5)](_0x4beb75=>_0x4beb75[_0x2096a5(0xf3)]===_0x2096a5(0x105));console['error'](_0x2096a5(0x12f)+_0x3c28fd+'\x27:');if(_0x5918b5[_0x2096a5(0x122)]>0x0){console['error']('\x20\x20'+a25_0x5a8da2[_0x2096a5(0x109)]('+\x20'+_0x5918b5[_0x2096a5(0x122)]+_0x2096a5(0xe4)));for(const _0x51cf16 of _0x5918b5)console[_0x2096a5(0x126)]('\x20\x20\x20\x20'+a25_0x5a8da2['green']('+')+'\x20'+_0x51cf16[_0x2096a5(0xeb)]['name']);}if(_0x471ecf['length']>0x0){console['error']('\x20\x20'+a25_0x5a8da2[_0x2096a5(0x103)]('~\x20'+_0x471ecf[_0x2096a5(0x122)]+'\x20DRAFT\x20ListCampaigns\x20to\x20update:'));for(const _0x5812d6 of _0x471ecf)console[_0x2096a5(0x126)](_0x2096a5(0xf1)+a25_0x5a8da2[_0x2096a5(0x103)]('~')+'\x20'+_0x5812d6[_0x2096a5(0xeb)][_0x2096a5(0x120)]);}if(_0x4d07b5['dryRun'])return console[_0x2096a5(0x126)](a25_0x5a8da2[_0x2096a5(0x103)]('\x0a[Dry\x20run]\x20No\x20changes\x20were\x20applied')),0x0;if(!_0x4d07b5['yes']){if(!isInteractive())return console[_0x2096a5(0x126)](a25_0x5a8da2[_0x2096a5(0x102)]('\x0aError:\x20Confirmation\x20required\x20but\x20running\x20in\x20non-interactive\x20mode')),console[_0x2096a5(0x126)](a25_0x5a8da2[_0x2096a5(0xe0)](_0x2096a5(0x10d))),0x1;const _0x3f723c=await confirmKey(_0x2096a5(0xdf)+_0x253987['length']+_0x2096a5(0x11f)+(_0x253987[_0x2096a5(0x122)]===0x1?'':'s')+'?');if(!_0x3f723c)return console['error'](a25_0x5a8da2[_0x2096a5(0x103)]('Aborted.'),'-\x20no\x20changes\x20applied'),0x1;}const _0x12a155=await withProgressSpinner(_0x2096a5(0xed),()=>_0x4ce406[_0x2096a5(0xdd)][_0x2096a5(0x10f)](_0x253987),{'verbose':_0x402baf['verbose']});for(const _0x2d75a4 of _0x12a155[_0x2096a5(0x12c)]){const _0x321867=_0x2d75a4['action']===_0x2096a5(0xdb)?a25_0x5a8da2[_0x2096a5(0x109)]('+'):a25_0x5a8da2['yellow']('~');console[_0x2096a5(0x126)]('\x20\x20'+_0x321867+'\x20'+_0x2d75a4['campaign'][_0x2096a5(0x120)]+'\x20('+_0x2d75a4[_0x2096a5(0xd5)][_0x2096a5(0x125)]+')');}return saveSessionContext({'engage_workspace':_0x3c28fd},_0x402baf[_0x2096a5(0x101)]),0x0;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a26_0x5071bb=a26_0x1a2d;(function(_0xe62dda,_0x1fc495){const _0x36a6db=a26_0x1a2d,_0x2daa5c=_0xe62dda();while(!![]){try{const _0x154e63=parseInt(_0x36a6db(0xdc))/0x1*(parseInt(_0x36a6db(0xb6))/0x2)+parseInt(_0x36a6db(0xbb))/0x3+parseInt(_0x36a6db(0xc5))/0x4+-parseInt(_0x36a6db(0xe0))/0x5+-parseInt(_0x36a6db(0xbf))/0x6*(parseInt(_0x36a6db(0xd8))/0x7)+-parseInt(_0x36a6db(0xd9))/0x8*(parseInt(_0x36a6db(0xce))/0x9)+parseInt(_0x36a6db(0xb7))/0xa;if(_0x154e63===_0x1fc495)break;else _0x2daa5c['push'](_0x2daa5c['shift']());}catch(_0x1d0841){_0x2daa5c['push'](_0x2daa5c['shift']());}}}(a26_0x3d4e,0x9046d));import a26_0x15b8c7 from'chalk';import{handleSingleObjectOutput,isStructuredFormat}from'../core/command-output.js';import{BaseCommand}from'./command.js';import{formatValidationResult}from'../sdk/segment/yaml-validator.js';function a26_0x3d4e(){const _0xd0eea=['message','108mJcldt','yellow','engage','campaignName','status','valid','\x20ready,\x20','ready','checks','summary','2492JmZVzs','580744ZfgCHW','delivery','skipReason','8QcWbCN','skipped','exitCode','log','2692945vZRRvo','dim','toUpperCase','273482eUhJDn','6028640obCxxs','Checking\x20campaign\x20readiness...','red','workspace','728784vNtgId','blocked','execute','\x20blocked,\x20','17148WyfwBJ','results','green','name','\x20(skipped:\x20','relativePath','4313560dhXIJb','validation','output','engage:campaign:readiness','verbose','source','\x20not\x20applicable','description'];a26_0x3d4e=function(){return _0xd0eea;};return a26_0x3d4e();}import{runCampaignReadiness,toStructuredCampaignReadinessReport}from'../sdk/engage/campaign-readiness-workflow.js';function a26_0x1a2d(_0x52080a,_0x3cbc09){_0x52080a=_0x52080a-0xb6;const _0x3d4edf=a26_0x3d4e();let _0x1a2dd1=_0x3d4edf[_0x52080a];return _0x1a2dd1;}import{withSpinner}from'../utils/spinner.js';export class EngageCampaignReadinessCommand extends BaseCommand{[a26_0x5071bb(0xc2)]=a26_0x5071bb(0xc8);[a26_0x5071bb(0xcc)]='Check\x20email\x20campaign\x20readiness\x20against\x20workspace\x20delivery\x20config';async[a26_0x5071bb(0xbd)](_0x4a95a4){const _0x4fecb4=a26_0x5071bb,{options:_0x12bd9c,args:_0x5b2cd3,tdx:_0x5ac689}=_0x4a95a4,_0x1d295e=_0x12bd9c,{data:_0x5209a7}=await withSpinner(_0x4fecb4(0xb8),()=>runCampaignReadiness({'engage':_0x5ac689[_0x4fecb4(0xd0)],'delivery':_0x5ac689[_0x4fecb4(0xda)]},{'target':_0x5b2cd3[0x0],'workspace':_0x1d295e[_0x4fecb4(0xba)],'session':_0x12bd9c['session']}),{'verbose':_0x12bd9c[_0x4fecb4(0xc9)]});if(isStructuredFormat(_0x12bd9c)||_0x12bd9c[_0x4fecb4(0xc7)]){const _0x2d1c65=toStructuredCampaignReadinessReport(_0x5209a7);return await handleSingleObjectOutput(_0x2d1c65,_0x12bd9c),_0x5209a7[_0x4fecb4(0xde)];}if(_0x5209a7[_0x4fecb4(0xcd)])console['log'](a26_0x15b8c7[_0x4fecb4(0xcf)](_0x5209a7[_0x4fecb4(0xcd)]));for(const _0x13ba4b of _0x5209a7[_0x4fecb4(0xc0)]){if(_0x13ba4b[_0x4fecb4(0xd2)]===_0x4fecb4(0xdd)){_0x12bd9c[_0x4fecb4(0xc9)]&&console[_0x4fecb4(0xdf)](a26_0x15b8c7[_0x4fecb4(0xe1)]('–\x20'+_0x13ba4b[_0x4fecb4(0xc4)]+_0x4fecb4(0xc3)+_0x13ba4b[_0x4fecb4(0xdb)]+')'));continue;}const _0x470728=_0x13ba4b[_0x4fecb4(0xd2)]===_0x4fecb4(0xd5)?a26_0x15b8c7['green']('✔'):_0x13ba4b[_0x4fecb4(0xd2)]===_0x4fecb4(0xbc)?a26_0x15b8c7[_0x4fecb4(0xb9)]('✖'):a26_0x15b8c7['dim']('–'),_0x4d7df1=_0x13ba4b[_0x4fecb4(0xd1)]?_0x13ba4b[_0x4fecb4(0xd1)]+':\x20':'';console[_0x4fecb4(0xdf)](_0x470728+'\x20'+_0x13ba4b[_0x4fecb4(0xc4)]+':\x20'+_0x4d7df1+_0x13ba4b[_0x4fecb4(0xd2)][_0x4fecb4(0xe2)]());_0x13ba4b[_0x4fecb4(0xc6)]&&(!_0x13ba4b[_0x4fecb4(0xc6)][_0x4fecb4(0xd3)]||_0x13ba4b[_0x4fecb4(0xc6)]['warnings']['length']>0x0)&&console[_0x4fecb4(0xdf)](formatValidationResult(_0x13ba4b[_0x4fecb4(0xc6)],_0x13ba4b[_0x4fecb4(0xca)]??'',_0x13ba4b[_0x4fecb4(0xc4)]));for(const _0x432ef8 of _0x13ba4b[_0x4fecb4(0xd6)]){const _0xb5f305=_0x432ef8[_0x4fecb4(0xd2)]===_0x4fecb4(0xd5)?a26_0x15b8c7['green']('✔'):_0x432ef8[_0x4fecb4(0xd2)]===_0x4fecb4(0xbc)?a26_0x15b8c7[_0x4fecb4(0xb9)]('✖'):a26_0x15b8c7['dim']('–');console[_0x4fecb4(0xdf)]('\x20\x20'+_0xb5f305+'\x20'+_0x432ef8[_0x4fecb4(0xc2)]+':\x20'+_0x432ef8[_0x4fecb4(0xcd)]);}}const {readyCount:_0x35ed28,blockedCount:_0x2e7b9a,notApplicableCount:_0x3177b0,skippedCount:_0x397d8f}=_0x5209a7[_0x4fecb4(0xd7)],_0x3dac19='Readiness:\x20'+_0x35ed28+_0x4fecb4(0xd4)+_0x2e7b9a+_0x4fecb4(0xbe)+_0x3177b0+_0x4fecb4(0xcb)+(_0x397d8f?',\x20'+_0x397d8f+'\x20skipped':'');return console[_0x4fecb4(0xdf)](_0x2e7b9a>0x0?a26_0x15b8c7[_0x4fecb4(0xb9)](_0x3dac19):a26_0x15b8c7[_0x4fecb4(0xc1)](_0x3dac19)),_0x5209a7[_0x4fecb4(0xde)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x29bceb=a27_0x10b6;(function(_0xecfaa4,_0x2dc7dc){const _0x7cce11=a27_0x10b6,_0x3d8df9=_0xecfaa4();while(!![]){try{const _0x420dc9=-parseInt(_0x7cce11(0x1ba))/0x1*(parseInt(_0x7cce11(0x1af))/0x2)+parseInt(_0x7cce11(0x1b7))/0x3*(-parseInt(_0x7cce11(0x1a3))/0x4)+-parseInt(_0x7cce11(0x1aa))/0x5*(parseInt(_0x7cce11(0x1b6))/0x6)+parseInt(_0x7cce11(0x1a7))/0x7+-parseInt(_0x7cce11(0x1ca))/0x8*(-parseInt(_0x7cce11(0x1c2))/0x9)+parseInt(_0x7cce11(0x19f))/0xa*(-parseInt(_0x7cce11(0x1c7))/0xb)+parseInt(_0x7cce11(0x1ac))/0xc;if(_0x420dc9===_0x2dc7dc)break;else _0x3d8df9['push'](_0x3d8df9['shift']());}catch(_0x3cde02){_0x3d8df9['push'](_0x3d8df9['shift']());}}}(a27_0x5e49,0x98928));import{BaseCommand}from'./command.js';function a27_0x10b6(_0x452bef,_0x9db5fc){_0x452bef=_0x452bef-0x198;const _0x5e4929=a27_0x5e49();let _0x10b668=_0x5e4929[_0x452bef];return _0x10b668;}import{findYamlFiles,isYamlFile}from'../sdk/segment/file-discovery.js';import{discoverListCampaignFiles,validateListCampaignYaml}from'../sdk/engage/list-campaign-yaml.js';import{existsSync,readFileSync}from'fs';import a27_0x3727fc from'chalk';import a27_0x1fa542 from'path';function a27_0x5e49(){const _0x133130=['execute','length','error','52566tpLUCc','28848SYiBiE','\x20non-campaign\x20file(s)\x20skipped','Error:\x20Invalid\x20campaign\x20type\x20\x22','2VmGRKO','\x20ListCampaign\x20error(s)','\x20non-campaign\x20file(s)\x20skipped)','cwd','validateListCampaignFiles','dirname','validCount','\x20warning(s)\x20found','9oZAXfH','resolve','verbose','relative','name','25036EBTYsv','\x20(skipped:\x20','\x20warning(s)','6715704siLgyv','red','endsWith','✔\x20All\x20','green','warnings','yellow','\x20error(s)','invalidCount','path','errors','engage:campaign:validate','\x20ListCampaign\x20YAML\x20file(s)\x20valid','Validation\x20failed:\x20','Error:\x20Directory\x20not\x20found:\x20','540zidcTQ','dim','campaignType','reason','432FIBAxk','Error:\x20No\x20YAML\x20files\x20found\x20in\x20','\x20campaign(s)\x20valid','filter','474831TjDZqo','\x22.\x20Valid\x20values:\x20campaign,\x20list-campaign','warningCount','505vOAkeH','log','23088564UIPCvG','Error:\x20File\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension:\x20','skippedCount','160114yxTxsj','valid','\x20campaign(s)\x20with\x20errors,\x20','campaign'];a27_0x5e49=function(){return _0x133130;};return a27_0x5e49();}import{formatValidationResult}from'../sdk/segment/yaml-validator.js';import{validateYamlFiles,isValidationResult,calculateSummary}from'../sdk/segment/validate-files.js';export class EngageCampaignValidateCommand extends BaseCommand{[a27_0x29bceb(0x1c6)]=a27_0x29bceb(0x19b);['description']='Validate\x20campaign\x20YAML\x20files';async[a27_0x29bceb(0x1b3)](_0x5ac626){const _0x217ae6=a27_0x29bceb,{options:_0x179a46,args:_0x5c1361}=_0x5ac626,_0x2eb6ad=_0x179a46,_0x16fd1b=_0x2eb6ad[_0x217ae6(0x1a1)]??'campaign';if(_0x16fd1b==='list-campaign')return this[_0x217ae6(0x1be)](_0x5c1361[0x0],_0x2eb6ad[_0x217ae6(0x1c4)]);if(_0x16fd1b!==_0x217ae6(0x1b2))return console[_0x217ae6(0x1b5)](_0x217ae6(0x1b9)+_0x16fd1b+_0x217ae6(0x1a8)),0x1;const _0x1c24f5=_0x5c1361[0x0],_0x4ff120=_0x1c24f5?a27_0x1fa542['resolve'](_0x1c24f5):undefined,_0xcd681f=_0x4ff120?isYamlFile(_0x4ff120):![];let _0x113c76,_0x16acb6;if(_0xcd681f&&_0x4ff120)_0x113c76=a27_0x1fa542[_0x217ae6(0x1bf)](_0x4ff120),_0x16acb6=_0x4ff120;else _0x4ff120?_0x113c76=_0x4ff120:_0x113c76=process[_0x217ae6(0x1bd)]();if(!_0x16acb6&&!existsSync(_0x113c76))return console[_0x217ae6(0x1b5)](a27_0x3727fc[_0x217ae6(0x1cb)](_0x217ae6(0x19e)+_0x113c76+'\x0a')),0x1;let _0x2c6cf9;if(_0x16acb6){if(!_0x16acb6[_0x217ae6(0x1cc)]('.yml')&&!_0x16acb6['endsWith']('.yaml'))return console[_0x217ae6(0x1b5)](a27_0x3727fc['red'](_0x217ae6(0x1ad)+_0x16acb6+'\x0a')),0x1;_0x2c6cf9=[_0x16acb6];}else _0x2c6cf9=findYamlFiles(_0x113c76);if(_0x2c6cf9['length']===0x0)return console['error'](a27_0x3727fc[_0x217ae6(0x1cb)](_0x217ae6(0x1a4)+_0x113c76+'\x0a')),0x1;const _0x527b2e=validateYamlFiles(_0x2c6cf9,_0x113c76,{'filterType':_0x217ae6(0x1b2)}),_0x2164b8=calculateSummary(_0x527b2e),_0x47d604=_0x527b2e[_0x217ae6(0x1a6)](isValidationResult);if(_0x47d604['length']===0x0)return console[_0x217ae6(0x1b5)](a27_0x3727fc[_0x217ae6(0x1d0)]('No\x20campaign\x20YAML\x20files\x20found\x20in\x20'+_0x113c76+'\x0a')),_0x2164b8['skippedCount']>0x0&&console[_0x217ae6(0x1b5)](a27_0x3727fc[_0x217ae6(0x1a0)]('('+_0x2164b8[_0x217ae6(0x1ae)]+_0x217ae6(0x1bc))),0x0;for(const _0xa935c3 of _0x527b2e){if(!isValidationResult(_0xa935c3)){_0x2eb6ad[_0x217ae6(0x1c4)]&&console['log'](a27_0x3727fc['dim']('-\x20'+_0xa935c3['relativePath']+_0x217ae6(0x1c8)+_0xa935c3[_0x217ae6(0x1a2)]+')'));continue;}const {relativePath:_0x3e0cb8,source:_0x2eb8a1,result:_0x5bffae}=_0xa935c3;if(_0x5bffae[_0x217ae6(0x1b0)]&&_0x5bffae[_0x217ae6(0x1cf)]['length']===0x0)_0x2eb6ad[_0x217ae6(0x1c4)]&&console[_0x217ae6(0x1ab)](a27_0x3727fc[_0x217ae6(0x1ce)]('✔\x20'+_0x3e0cb8));else _0x5bffae[_0x217ae6(0x1b0)]?(console[_0x217ae6(0x1ab)](a27_0x3727fc[_0x217ae6(0x1d0)]('⚠\x20'+_0x3e0cb8+':\x20'+_0x5bffae[_0x217ae6(0x1cf)]['length']+_0x217ae6(0x1c9))),console[_0x217ae6(0x1ab)](formatValidationResult(_0x5bffae,_0x2eb8a1,_0x3e0cb8))):(console[_0x217ae6(0x1ab)](a27_0x3727fc[_0x217ae6(0x1cb)]('✖\x20'+_0x3e0cb8+':\x20'+_0x5bffae[_0x217ae6(0x19a)][_0x217ae6(0x1b4)]+_0x217ae6(0x1d1))),console[_0x217ae6(0x1ab)](formatValidationResult(_0x5bffae,_0x2eb8a1,_0x3e0cb8)));}return console['log'](''),_0x2164b8['hasErrors']?(console[_0x217ae6(0x1ab)](a27_0x3727fc[_0x217ae6(0x1cb)]('Validation\x20failed:\x20'+_0x2164b8[_0x217ae6(0x198)]+_0x217ae6(0x1b1)+_0x2164b8[_0x217ae6(0x1c0)]+'\x20valid')),_0x2164b8[_0x217ae6(0x1a9)]>0x0&&console[_0x217ae6(0x1ab)](a27_0x3727fc['yellow'](_0x2164b8['warningCount']+'\x20warning(s)\x20found')),_0x2164b8[_0x217ae6(0x1ae)]>0x0&&console[_0x217ae6(0x1ab)](a27_0x3727fc[_0x217ae6(0x1a0)](_0x2164b8[_0x217ae6(0x1ae)]+_0x217ae6(0x1b8))),0x1):(console['log'](a27_0x3727fc[_0x217ae6(0x1ce)]('✔\x20All\x20'+_0x2164b8[_0x217ae6(0x1c0)]+_0x217ae6(0x1a5))),_0x2164b8[_0x217ae6(0x1a9)]>0x0&&console[_0x217ae6(0x1ab)](a27_0x3727fc[_0x217ae6(0x1d0)](_0x2164b8[_0x217ae6(0x1a9)]+_0x217ae6(0x1c1))),_0x2164b8[_0x217ae6(0x1ae)]>0x0&&console[_0x217ae6(0x1ab)](a27_0x3727fc['dim'](_0x2164b8[_0x217ae6(0x1ae)]+_0x217ae6(0x1b8))),0x0);}[a27_0x29bceb(0x1be)](_0x113342,_0xf554d6){const _0x206761=a27_0x29bceb,_0x21598f=_0x113342?a27_0x1fa542[_0x206761(0x1c3)](_0x113342):undefined,_0x5cbc10=_0x21598f?isYamlFile(_0x21598f):![],_0x8dca1d=_0x5cbc10&&_0x21598f?a27_0x1fa542[_0x206761(0x1bf)](_0x21598f):_0x21598f??process[_0x206761(0x1bd)]();if(!_0x5cbc10&&!existsSync(_0x8dca1d))return console[_0x206761(0x1b5)](a27_0x3727fc['red'](_0x206761(0x19e)+_0x8dca1d)),0x1;const _0x443ef7=_0x5cbc10&&_0x21598f?[_0x21598f]:discoverListCampaignFiles(_0x8dca1d);if(_0x443ef7[_0x206761(0x1b4)]===0x0)return console['error'](a27_0x3727fc[_0x206761(0x1d0)]('No\x20ListCampaign\x20YAML\x20files\x20found\x20in\x20'+_0x8dca1d)),0x1;let _0x3899d5=0x0;for(const _0x6d8c3b of _0x443ef7){const _0x4d00c7=validateListCampaignYaml(readFileSync(_0x6d8c3b,'utf8'));if(_0x4d00c7['valid']){if(_0xf554d6)console['log'](a27_0x3727fc[_0x206761(0x1ce)]('✔\x20'+a27_0x1fa542['relative'](_0x8dca1d,_0x6d8c3b)));continue;}_0x3899d5+=_0x4d00c7[_0x206761(0x19a)][_0x206761(0x1b4)],console[_0x206761(0x1b5)](a27_0x3727fc[_0x206761(0x1cb)]('✖\x20'+a27_0x1fa542[_0x206761(0x1c5)](_0x8dca1d,_0x6d8c3b)));for(const _0x3b2074 of _0x4d00c7[_0x206761(0x19a)]){const _0x506145=_0x3b2074['path']?_0x3b2074[_0x206761(0x199)]+':\x20':'';console['error']('\x20\x20'+a27_0x3727fc[_0x206761(0x1cb)]('✗')+'\x20'+_0x506145+_0x3b2074['message']);}}if(_0x3899d5>0x0)return console['error'](a27_0x3727fc[_0x206761(0x1cb)](_0x206761(0x19d)+_0x3899d5+_0x206761(0x1bb))),0x1;return console[_0x206761(0x1ab)](a27_0x3727fc[_0x206761(0x1ce)](_0x206761(0x1cd)+_0x443ef7[_0x206761(0x1b4)]+_0x206761(0x19c))),0x0;}}
|