@lovrabet/rabetbase-cli 2.5.2-beta.4 → 2.5.2-beta.5
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/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/auto-sync.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.d.ts +6 -5
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102_0x4f1d36=a102_0x59b5;(function(_0x3305be,_0x297b93){const _0x4a809d=a102_0x59b5,_0x8480e1=_0x3305be();while(!![]){try{const _0x1e0351=parseInt(_0x4a809d(0x1fb))/0x1+parseInt(_0x4a809d(0x21b))/0x2*(parseInt(_0x4a809d(0x230))/0x3)+parseInt(_0x4a809d(0x201))/0x4*(-parseInt(_0x4a809d(0x216))/0x5)+-parseInt(_0x4a809d(0x220))/0x6+-parseInt(_0x4a809d(0x20d))/0x7+-parseInt(_0x4a809d(0x212))/0x8+-parseInt(_0x4a809d(0x226))/0x9*(-parseInt(_0x4a809d(0x1f9))/0xa);if(_0x1e0351===_0x297b93)break;else _0x8480e1['push'](_0x8480e1['shift']());}catch(_0x444bcc){_0x8480e1['push'](_0x8480e1['shift']());}}}(a102_0x4ef7,0xe8b44));function a102_0x59b5(_0x5954b1,_0x40d844){_0x5954b1=_0x5954b1-0x1ef;const _0x4ef7bd=a102_0x4ef7();let _0x59b56e=_0x4ef7bd[_0x5954b1];return _0x59b56e;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SYNC_PATH='/smartapi/data-sync/sync',SYNC_TYPES=[a102_0x4f1d36(0x231),a102_0x4f1d36(0x211),'sql'],TYPE_FLAG={'name':a102_0x4f1d36(0x205),'type':a102_0x4f1d36(0x1f8),'required':!![],'enum':[...SYNC_TYPES],'description':a102_0x4f1d36(0x228)},CODES_FLAG={'name':a102_0x4f1d36(0x1ef),'type':'string','required':!![],'description':a102_0x4f1d36(0x214)},CONFIRM_FLAG={'name':a102_0x4f1d36(0x22c),'type':a102_0x4f1d36(0x1ff),'description':a102_0x4f1d36(0x208)};export const deploymentSync={'service':a102_0x4f1d36(0x225),'command':a102_0x4f1d36(0x219),'description':a102_0x4f1d36(0x21c),'risk':a102_0x4f1d36(0x20f),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Synchronize\x20selected\x20development\x20metadata\x20into\x20the\x20server-managed\x20deployment\x20target.','flags':[TYPE_FLAG,CODES_FLAG,CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x40b87e){buildSyncPlan(_0x40b87e);},async 'dryRun'(_0x22af8d){const _0x95c3b9=a102_0x4f1d36,_0x4c6c16=buildSyncPlan(_0x22af8d);return asDryRunResult(buildOutput(_0x4c6c16,[],!![],_0x95c3b9(0x22e)),{'method':_0x95c3b9(0x229),'url':SYNC_PATH,'description':_0x95c3b9(0x1fc)+_0x4c6c16[_0x95c3b9(0x21d)]['bizCodes'][_0x95c3b9(0x1f0)]+'\x20'+_0x4c6c16[_0x95c3b9(0x21d)][_0x95c3b9(0x1fa)]+_0x95c3b9(0x213)});},async 'execute'(_0x5a18d0){const _0x42da75=a102_0x4f1d36,_0x2ce956=buildSyncPlan(_0x5a18d0);if(!_0x5a18d0[_0x42da75(0x1f3)](_0x42da75(0x22c)))throw CliErrors['validation'](_0x42da75(0x227),_0x42da75(0x209));let _0x3297ec;try{_0x3297ec=(await syncDeploymentMetadata(_0x2ce956[_0x42da75(0x21d)]))[_0x42da75(0x223)];}catch(_0x86c5a0){if(!isPlatformTransportFailure(_0x86c5a0))throw _0x86c5a0;const _0x4469c6=new CliError(_0x42da75(0x20e),0x2,'Deployment\x20sync\x20response\x20was\x20unavailable;\x20the\x20target\x20outcome\x20is\x20unknown.',_0x42da75(0x1f5));attachErrorData(_0x4469c6,buildOutput(_0x2ce956,[],![],_0x42da75(0x21f)));throw _0x4469c6;}const _0x3d453d=_0x3297ec['filter'](_0x44bc3a=>_0x44bc3a[_0x42da75(0x21a)]==='FAILED'),_0x5970e4=_0x3d453d[_0x42da75(0x1f0)]>0x0?'partial_failure':_0x42da75(0x1fd),_0x5a59a0=buildOutput(_0x2ce956,_0x3297ec,![],_0x5970e4);if(_0x3d453d[_0x42da75(0x1f0)]>0x0){const _0x1714c8=new CliError(_0x42da75(0x221),0x1,_0x42da75(0x215)+_0x3d453d[_0x42da75(0x1f0)]+'/'+_0x3297ec['length']+_0x42da75(0x1f6),_0x42da75(0x232));attachErrorData(_0x1714c8,_0x5a59a0);throw _0x1714c8;}return{'ok':!![],'data':_0x5a59a0,'message':_0x42da75(0x200)+_0x3297ec[_0x42da75(0x1f0)]+_0x42da75(0x21e)};}};function buildSyncPlan(_0x7fe33d){const _0xc76699=a102_0x4f1d36,_0x151ac6=_0x7fe33d[_0xc76699(0x203)](_0xc76699(0x205))['trim']();if(!SYNC_TYPES[_0xc76699(0x1f4)](_0x151ac6))throw CliErrors[_0xc76699(0x22b)](_0xc76699(0x218)+SYNC_TYPES[_0xc76699(0x20a)](',\x20')+'.');const _0x315772=normalizeCodes(_0x7fe33d[_0xc76699(0x203)](_0xc76699(0x1ef)));if(_0x315772[_0xc76699(0x1f0)]===0x0)throw CliErrors[_0xc76699(0x22b)]('--codes\x20must\x20contain\x20at\x20least\x20one\x20non-blank\x20code.');if(_0x315772['length']>0x64)throw CliErrors[_0xc76699(0x22b)]('--codes\x20supports\x20at\x20most\x20100\x20unique\x20codes.');const _0x455bb3={'appCode':_0x7fe33d[_0xc76699(0x1f2)],'bizType':_0x151ac6,'bizCodes':_0x315772},_0x66cb41=[_0xc76699(0x20c),_0xc76699(0x207)];return _0x151ac6===_0xc76699(0x231)&&_0x66cb41[_0xc76699(0x217)](_0xc76699(0x204)),{'input':_0x455bb3,'selector':{'appCode':_0x7fe33d[_0xc76699(0x1f2)],'bizType':_0x151ac6,'bizCodes':_0x315772},'warnings':_0x66cb41};}function a102_0x4ef7(){const _0x2d0284=['warnings','boolean','Synchronized\x20','5804WoAiFy','FAILED','str','Dataset\x20sync\x20may\x20commit\x20target\x20connection\x20metadata\x20before\x20item\x20synchronization;\x20that\x20change\x20is\x20not\x20rolled\x20back\x20when\x20later\x20items\x20fail.','type','trim','Do\x20not\x20retry\x20automatically\x20when\x20the\x20request\x20outcome\x20is\x20unknown.','Confirm\x20the\x20metadata\x20codes\x20and\x20start\x20synchronization','Run\x20with\x20--dry-run\x20first,\x20verify\x20the\x20target\x20and\x20codes,\x20then\x20add\x20--confirm.','join','defineProperty','Target\x20state\x20is\x20not\x20read\x20back\x20because\x20no\x20target\x20metadata\x20read\x20API\x20is\x20available.','4809959Iczkgr','deployment_sync_outcome_unknown','write','split','bff','12737624TrGFLZ','\x20item(s).','Comma-separated\x20Dataset,\x20Backend\x20Function,\x20or\x20SQL\x20codes\x20(maximum\x20100)','Deployment\x20sync\x20completed\x20with\x20','4775nnkmyw','unshift','--type\x20must\x20be\x20one\x20of:\x20','sync','action','7418tSydIk','Synchronize\x20selected\x20development\x20metadata\x20to\x20the\x20server-managed\x20deployment\x20target','input','\x20deployment\x20metadata\x20item(s).','unknown','11295882kqEeBS','deployment_sync_partial_failure','map','items','target_read_api_unavailable','deployment','5877gjiuTC','--confirm\x20is\x20required\x20to\x20synchronize\x20deployment\x20metadata.','Metadata\x20type\x20to\x20synchronize','POST','filter','validation','confirm','partial_failure','not_submitted','bizCodes','282cwneLC','dataset','Review\x20data.items\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20before\x20deciding\x20whether\x20to\x20retry\x20failed\x20codes.','codes','length','UPDATED','appCode','bool','includes','Inspect\x20the\x20target\x20database\x20before\x20retrying.\x20Do\x20not\x20resubmit\x20automatically.','\x20failed\x20item(s).','reduce','string','77440whZvLJ','bizType','1095370EmcatV','Would\x20synchronize\x20','succeeded'];a102_0x4ef7=function(){return _0x2d0284;};return a102_0x4ef7();}function normalizeCodes(_0x4240ee){const _0x5dff26=a102_0x4f1d36;return[...new Set(_0x4240ee[_0x5dff26(0x210)](',')[_0x5dff26(0x222)](_0xd1664d=>_0xd1664d[_0x5dff26(0x206)]())[_0x5dff26(0x22a)](Boolean))];}function buildOutput(_0x4e435b,_0x38d3d9,_0x23f63f,_0x5e80e8){const _0x541d9f=a102_0x4f1d36,_0x22056c=_0x5e80e8===_0x541d9f(0x1fd)||_0x5e80e8===_0x541d9f(0x22d),_0x23f42a=_0x38d3d9[_0x541d9f(0x1f7)]((_0x1bb56f,_0x3a51cd)=>{const _0x3c3234=_0x541d9f;return _0x1bb56f[_0x3a51cd[_0x3c3234(0x21a)]]=(_0x1bb56f[_0x3a51cd[_0x3c3234(0x21a)]]??0x0)+0x1,_0x1bb56f;},{});return{'operation':'deployment_metadata_sync','selector':_0x4e435b['selector'],'before':null,'after':null,'dryRun':_0x23f63f,'backend':{'submitted':_0x5e80e8!==_0x541d9f(0x22e),'method':_0x541d9f(0x229),'path':SYNC_PATH,'outcome':_0x5e80e8},'summary':{'requested':_0x4e435b['input'][_0x541d9f(0x22f)][_0x541d9f(0x1f0)],'total':_0x22056c?_0x38d3d9[_0x541d9f(0x1f0)]:_0x4e435b[_0x541d9f(0x21d)][_0x541d9f(0x22f)][_0x541d9f(0x1f0)],'created':_0x38d3d9[_0x541d9f(0x22a)](_0x55cd3c=>_0x55cd3c[_0x541d9f(0x21a)]==='CREATED')[_0x541d9f(0x1f0)],'updated':_0x38d3d9[_0x541d9f(0x22a)](_0x1fdeb0=>_0x1fdeb0['action']===_0x541d9f(0x1f1))[_0x541d9f(0x1f0)],'failed':_0x38d3d9[_0x541d9f(0x22a)](_0x1a4316=>_0x1a4316[_0x541d9f(0x21a)]===_0x541d9f(0x202))['length'],'byAction':_0x23f42a},'items':_0x38d3d9,'verification':{'performed':![],'reason':_0x541d9f(0x224)},'warnings':_0x4e435b[_0x541d9f(0x1fe)]};}function attachErrorData(_0x45348f,_0x4e36f4){const _0x230edb=a102_0x4f1d36;Object[_0x230edb(0x20b)](_0x45348f,'data',{'value':_0x4e36f4,'enumerable':!![]});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103_0x3bc738=a103_0x4ee9;function a103_0x1b33(){const _0xb49307=['packageVersion','value','verbose','region','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','\x20\x20Routing\x20Configuration','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','global','source','\x20doctor','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3594480WDIhiI','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20\x20Repair\x20global:\x20\x20\x20\x20','filter','currentApp','raw','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20config\x20delete\x20routing','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','11872896lLvfEd','\x20config\x20delete\x20region','10980450uytvdz','empty','skillVersion','1142868hZgAsV','✓\x20Valid\x20JSON','(no\x20file)','Project','repairCommand','\x20\x20─','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20Installed\x20Path:\x20\x20','\x20\x20API\x20Endpoints','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9iQEZMa','format','includes','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','stringify','apps','(default)','(set,\x20length=','version','(not\x20found)','✗\x20Invalid\x20JSON','check','state','doctor','red','Repair\x20','⚠\x20Empty\x20(treated\x20as\x20{})','prototype','(not\x20set)','\x20\x20Repair\x20global:\x20\x20\x20','\x20+\x20','accessKey','✗\x20Invalid','(missing)','null','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20←\x20current','riskLevel','(set\x20via\x20file,\x20length=','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','join','current','appCode','pageSize','reason','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','projectConfig','cookie','env','\x20\x20Built-in\x20Skill','\x20config\x20delete\x20routing\x20--global','read','bold','\x20config\x20delete\x20inherit','explicitAppName','keys','gray','green','project','1711884Iqcgub','globalConfig','appcode','ignored\x20in\x20','\x20config\x20delete\x20inherit\x20--global','✗\x20Not\x20logged\x20in','repeat','hasOwnProperty','routing','locale','\x20\x20Auth','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','inherit','10940960mZsXBi','\x20\x20Repair\x20project:\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','arch','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Apps','padEnd','(none)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20explicitAppName:\x20','label','\x20(default)','7sorzGx','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','string','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','platform','105314fRTxle','30SylWzm','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','✗\x20Invalid\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a103_0x1b33=function(){return _0xb49307;};return a103_0x1b33();}(function(_0x56ca09,_0x219ecd){const _0x2e37c8=a103_0x4ee9,_0x1ce270=_0x56ca09();while(!![]){try{const _0x48d83a=parseInt(_0x2e37c8(0x157))/0x1*(parseInt(_0x2e37c8(0x15d))/0x2)+-parseInt(_0x2e37c8(0x194))/0x3*(-parseInt(_0x2e37c8(0x188))/0x4)+parseInt(_0x2e37c8(0x15e))/0x5*(-parseInt(_0x2e37c8(0x1c9))/0x6)+parseInt(_0x2e37c8(0x183))/0x7+-parseInt(_0x2e37c8(0x173))/0x8+parseInt(_0x2e37c8(0x185))/0x9+-parseInt(_0x2e37c8(0x149))/0xa;if(_0x48d83a===_0x219ecd)break;else _0x1ce270['push'](_0x1ce270['shift']());}catch(_0x262440){_0x1ce270['push'](_0x1ce270['shift']());}}}(a103_0x1b33,0xd876e));import a103_0x1b8119 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function a103_0x4ee9(_0x16132d,_0x1a6d1a){_0x16132d=_0x16132d-0x143;const _0x1b33d8=a103_0x1b33();let _0x4ee932=_0x1b33d8[_0x16132d];return _0x4ee932;}function describeRegionValue(_0x39ccc8){const _0x43db14=a103_0x4ee9;return typeof _0x39ccc8===_0x43db14(0x15a)?JSON[_0x43db14(0x198)](_0x39ccc8):'<'+(_0x39ccc8===null?_0x43db14(0x1ac):typeof _0x39ccc8)+'>';}async function execute(_0x18b2a9){const _0x5b1693=a103_0x4ee9,_0x76edc3=GIT_COMMIT!==_0x5b1693(0x181)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x366345=buildConfigFromFlags({}),_0x4410e0=getCookie();let _0x52b801;try{await initGlobalEnvironment(_0x366345);}catch(_0x125b23){_0x52b801=_0x125b23 instanceof Error?_0x125b23:new Error(String(_0x125b23));}console[_0x5b1693(0x1ae)](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)](CLI_BIN_NAME+_0x5b1693(0x170))),console['log'](a103_0x1b8119['gray']('─'['repeat'](0x32))),console['log'](_0x5b1693(0x17a)+_0x76edc3),console[_0x5b1693(0x1ae)](_0x5b1693(0x1ad)+process[_0x5b1693(0x19c)]),console[_0x5b1693(0x1ae)](_0x5b1693(0x15f)+process[_0x5b1693(0x15c)]+'\x20'+process[_0x5b1693(0x14c)]);const _0x15b1b3=inspectBuiltinSkill();console[_0x5b1693(0x1ae)](),console['log'](a103_0x1b8119[_0x5b1693(0x1c2)](_0x5b1693(0x1bf))),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c6)]('\x20\x20─'[_0x5b1693(0x1cf)](0x1e)));const _0xadd6a4=_0x15b1b3['state']===_0x5b1693(0x1b7)?a103_0x1b8119[_0x5b1693(0x1c7)]('✓\x20'+_0x15b1b3[_0x5b1693(0x1a0)]):a103_0x1b8119[_0x5b1693(0x1a2)]('✗\x20'+_0x15b1b3[_0x5b1693(0x1a0)]);console[_0x5b1693(0x1ae)](_0x5b1693(0x1b5)+_0xadd6a4),console[_0x5b1693(0x1ae)]('\x20\x20Package\x20Version:\x20'+_0x15b1b3[_0x5b1693(0x163)]),console['log'](_0x5b1693(0x171)+(_0x15b1b3[_0x5b1693(0x187)]||a103_0x1b8119[_0x5b1693(0x1c6)]('(unknown)'))),console['log'](_0x5b1693(0x191)+(_0x15b1b3['installedPath']||a103_0x1b8119['gray']('(not\x20found)')));if(_0x15b1b3['reason'])console[_0x5b1693(0x1ae)](_0x5b1693(0x16a)+_0x15b1b3[_0x5b1693(0x1ba)]);_0x15b1b3[_0x5b1693(0x1a0)]!==_0x5b1693(0x1b7)&&console['log'](_0x5b1693(0x146)+_0x15b1b3[_0x5b1693(0x18c)]);console['log'](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)]('\x20\x20Config\x20Files')),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x18d)['repeat'](0x1e)));const _0x1e0dad=getGlobalConfigPath(),_0x4d59cb=getProjectConfigPath();console[_0x5b1693(0x1ae)](_0x5b1693(0x16d)+(_0x1e0dad||a103_0x1b8119[_0x5b1693(0x1c6)]('(not\x20found)'))),console['log'](_0x5b1693(0x158)+(_0x4d59cb||a103_0x1b8119['gray'](_0x5b1693(0x19d)))),console[_0x5b1693(0x1ae)](),console[_0x5b1693(0x1ae)](a103_0x1b8119['bold']('\x20\x20Config\x20JSON')),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x18d)[_0x5b1693(0x1cf)](0x1e)));const _0x1a192b=(_0x3dec3f,_0x2a0653)=>{const _0x4c1064=_0x5b1693;if(!_0x2a0653){console[_0x4c1064(0x1ae)]('\x20\x20'+_0x3dec3f['padEnd'](0x11)+'\x20'+a103_0x1b8119['gray'](_0x4c1064(0x18a)));return;}const _0x5683d2=inspectCliConfigJsonFile(_0x2a0653);if(_0x5683d2[_0x4c1064(0x147)]==='ok')console[_0x4c1064(0x1ae)]('\x20\x20'+_0x3dec3f[_0x4c1064(0x150)](0x11)+'\x20'+a103_0x1b8119[_0x4c1064(0x1c7)](_0x4c1064(0x189)));else{if(_0x5683d2[_0x4c1064(0x147)]===_0x4c1064(0x186))console[_0x4c1064(0x1ae)]('\x20\x20'+_0x3dec3f[_0x4c1064(0x150)](0x11)+'\x20'+a103_0x1b8119['yellow'](_0x4c1064(0x1a4)));else _0x5683d2[_0x4c1064(0x147)]==='missing'?console[_0x4c1064(0x1ae)]('\x20\x20'+_0x3dec3f[_0x4c1064(0x150)](0x11)+'\x20'+a103_0x1b8119['gray'](_0x4c1064(0x1ab))):(console[_0x4c1064(0x1ae)]('\x20\x20'+_0x3dec3f[_0x4c1064(0x150)](0x11)+'\x20'+a103_0x1b8119[_0x4c1064(0x1a2)](_0x4c1064(0x19e))),console[_0x4c1064(0x1ae)]('\x20\x20'+''[_0x4c1064(0x150)](0x11)+'\x20'+a103_0x1b8119[_0x4c1064(0x1a2)](_0x5683d2[_0x4c1064(0x159)])));}};_0x1a192b('Global',_0x1e0dad),_0x1a192b('Project',_0x4d59cb);const _0x264715=loadRawConfigLayers(),_0x169ea8=[{'label':_0x5b1693(0x18b),'value':_0x264715[_0x5b1693(0x1bc)]['region'],'present':Object['prototype']['hasOwnProperty'][_0x5b1693(0x16b)](_0x264715[_0x5b1693(0x1bc)],'region'),'repairCommand':CLI_BIN_NAME+_0x5b1693(0x184)},{'label':'Global','value':_0x264715[_0x5b1693(0x1ca)]['region'],'present':Object[_0x5b1693(0x1a5)][_0x5b1693(0x1d0)]['call'](_0x264715[_0x5b1693(0x1ca)],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x5b1693(0x177)](_0x5cb06d=>_0x5cb06d['present']&&isInvalidLovrabetRegion(_0x5cb06d[_0x5b1693(0x164)]));if(_0x169ea8[_0x5b1693(0x175)]>0x0){console['log'](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)](_0x5b1693(0x160))),console[_0x5b1693(0x1ae)](a103_0x1b8119['gray'](_0x5b1693(0x18d)[_0x5b1693(0x1cf)](0x1e)));for(const _0x33656c of _0x169ea8){console['log']('\x20\x20'+_0x33656c[_0x5b1693(0x155)][_0x5b1693(0x150)](0x11)+'\x20'+a103_0x1b8119[_0x5b1693(0x1a2)](_0x5b1693(0x161)+describeRegionValue(_0x33656c['value']))),console[_0x5b1693(0x1ae)]('\x20\x20'+(_0x5b1693(0x1a3)+_0x33656c[_0x5b1693(0x155)]['toLowerCase']()+':')[_0x5b1693(0x150)](0x10)+'\x20'+_0x33656c[_0x5b1693(0x18c)]);}}const _0x735d9=[Object[_0x5b1693(0x1a5)][_0x5b1693(0x1d0)][_0x5b1693(0x16b)](_0x264715[_0x5b1693(0x1ca)],'inherit')?_0x5b1693(0x16e):null,Object['prototype']['hasOwnProperty'][_0x5b1693(0x16b)](_0x264715[_0x5b1693(0x1bc)],_0x5b1693(0x148))?_0x5b1693(0x1c8):null][_0x5b1693(0x177)](Boolean);_0x735d9[_0x5b1693(0x175)]>0x0&&(console[_0x5b1693(0x1ae)](_0x5b1693(0x17d)+a103_0x1b8119[_0x5b1693(0x17c)](_0x5b1693(0x1cc)+_0x735d9[_0x5b1693(0x1b6)](_0x5b1693(0x1a8))+'\x20config')),_0x735d9[_0x5b1693(0x196)](_0x5b1693(0x1c8))&&console[_0x5b1693(0x1ae)](_0x5b1693(0x18e)+CLI_BIN_NAME+_0x5b1693(0x1c3)),_0x735d9[_0x5b1693(0x196)](_0x5b1693(0x16e))&&console['log'](_0x5b1693(0x176)+CLI_BIN_NAME+_0x5b1693(0x1cd)));const _0x18239b=isInvalidLovrabetRegion(_0x366345[_0x5b1693(0x179)]?.[_0x5b1693(0x166)]);_0x52b801&&!_0x18239b&&(console[_0x5b1693(0x1ae)](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)](_0x5b1693(0x16c))),console['log'](a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x18d)[_0x5b1693(0x1cf)](0x1e))),console[_0x5b1693(0x1ae)](_0x5b1693(0x172)+a103_0x1b8119['red'](_0x5b1693(0x1aa))),console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x52b801[_0x5b1693(0x159)]),Object['prototype'][_0x5b1693(0x1d0)][_0x5b1693(0x16b)](_0x264715[_0x5b1693(0x1bc)],_0x5b1693(0x143))&&console[_0x5b1693(0x1ae)](_0x5b1693(0x14a)+CLI_BIN_NAME+_0x5b1693(0x17e)),Object[_0x5b1693(0x1a5)][_0x5b1693(0x1d0)][_0x5b1693(0x16b)](_0x264715[_0x5b1693(0x1ca)],_0x5b1693(0x143))&&console['log'](_0x5b1693(0x1a7)+CLI_BIN_NAME+_0x5b1693(0x1c0)));console[_0x5b1693(0x1ae)](),console['log'](a103_0x1b8119[_0x5b1693(0x1c2)]('\x20\x20Merged\x20Config')),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x18d)[_0x5b1693(0x1cf)](0x1e))),console[_0x5b1693(0x1ae)](_0x5b1693(0x182)+(_0x366345[_0x5b1693(0x1b8)]||a103_0x1b8119[_0x5b1693(0x1a2)](_0x5b1693(0x1a6)))),console['log'](_0x5b1693(0x174)+_0x366345[_0x5b1693(0x1be)]),console[_0x5b1693(0x1ae)](_0x5b1693(0x168)+_0x366345[_0x5b1693(0x144)]),console[_0x5b1693(0x1ae)](_0x5b1693(0x167)+_0x366345[_0x5b1693(0x153)]),console[_0x5b1693(0x1ae)](_0x5b1693(0x18f)+(_0x366345[_0x5b1693(0x190)]||a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x151)))),console[_0x5b1693(0x1ae)](_0x5b1693(0x14d)+(_0x366345['currentApp']||a103_0x1b8119[_0x5b1693(0x1c6)]('(none)'))),console['log'](_0x5b1693(0x154)+(_0x366345[_0x5b1693(0x1c4)]||a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x151)))),console['log'](_0x5b1693(0x169)+(_0x366345['format']||a103_0x1b8119['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x5b1693(0x195)]+')'))),console[_0x5b1693(0x1ae)](_0x5b1693(0x17f)+(_0x366345[_0x5b1693(0x1b9)]??a103_0x1b8119['gray'](_0x5b1693(0x19a)))),console[_0x5b1693(0x1ae)](_0x5b1693(0x152)+_0x366345[_0x5b1693(0x1b0)]),console['log'](_0x5b1693(0x162)+_0x366345[_0x5b1693(0x165)]),console[_0x5b1693(0x1ae)](_0x5b1693(0x17b)+(_0x366345[_0x5b1693(0x1bd)]?a103_0x1b8119['green'](_0x5b1693(0x19b)+_0x366345['cookie']['length']+')'):_0x4410e0?a103_0x1b8119['green'](_0x5b1693(0x1b1)+_0x4410e0['length']+')'):a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x151))));const _0xc9447c=Object[_0x5b1693(0x1c5)](_0x366345['apps']);if(_0xc9447c['length']>0x0){console['log'](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)](_0x5b1693(0x14f))),console[_0x5b1693(0x1ae)](a103_0x1b8119['gray']('\x20\x20─'[_0x5b1693(0x1cf)](0x1e)));for(const _0x19703e of _0xc9447c){const _0x57fcee=_0x366345[_0x5b1693(0x199)][_0x19703e],_0x4a4ea1=_0x19703e===_0x366345[_0x5b1693(0x190)],_0x5a16dc=_0x19703e===_0x366345[_0x5b1693(0x178)],_0x16b5ba=_0x5a16dc?a103_0x1b8119[_0x5b1693(0x1c7)](_0x5b1693(0x1af)):'',_0x577ed2=_0x4a4ea1?_0x5b1693(0x156):'';console['log']('\x20\x20'+_0x19703e+_0x577ed2+_0x16b5ba),console[_0x5b1693(0x1ae)](_0x5b1693(0x15b)+_0x57fcee[_0x5b1693(0x1cb)]);const _0x24cbe2=buildAppDoctorFields(_0x57fcee,{'env':_0x366345['env'],'apiDir':_0x366345[_0x5b1693(0x179)][_0x5b1693(0x153)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x366345['cookie']||_0x4410e0||undefined,'accessKey':_0x366345[_0x5b1693(0x1a9)]});console[_0x5b1693(0x1ae)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x24cbe2[_0x5b1693(0x1be)][_0x5b1693(0x164)]+'\x20\x20'+a103_0x1b8119[_0x5b1693(0x1c6)]('('+_0x24cbe2[_0x5b1693(0x1be)][_0x5b1693(0x16f)]+')')),console[_0x5b1693(0x1ae)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x24cbe2[_0x5b1693(0x153)][_0x5b1693(0x164)]+'\x20\x20'+a103_0x1b8119[_0x5b1693(0x1c6)]('('+_0x24cbe2[_0x5b1693(0x153)][_0x5b1693(0x16f)]+')'));const _0x2337bc=_0x24cbe2[_0x5b1693(0x1bd)][_0x5b1693(0x164)]?a103_0x1b8119[_0x5b1693(0x1c7)](_0x5b1693(0x19b)+_0x24cbe2[_0x5b1693(0x1bd)][_0x5b1693(0x164)]['length']+')'):a103_0x1b8119['gray'](_0x5b1693(0x151));console[_0x5b1693(0x1ae)](_0x5b1693(0x197)+_0x2337bc+'\x20\x20'+a103_0x1b8119['gray']('('+_0x24cbe2['cookie'][_0x5b1693(0x16f)]+')'));const _0x44a84a=_0x24cbe2[_0x5b1693(0x1a9)][_0x5b1693(0x164)]?a103_0x1b8119[_0x5b1693(0x1c7)](_0x5b1693(0x19b)+_0x24cbe2[_0x5b1693(0x1a9)][_0x5b1693(0x164)][_0x5b1693(0x175)]+')'):a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x151));console[_0x5b1693(0x1ae)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x44a84a+'\x20\x20'+a103_0x1b8119[_0x5b1693(0x1c6)]('('+_0x24cbe2[_0x5b1693(0x1a9)]['source']+')'));}}console[_0x5b1693(0x1ae)](),console['log'](a103_0x1b8119['bold'](_0x5b1693(0x192))),console[_0x5b1693(0x1ae)](a103_0x1b8119['gray'](_0x5b1693(0x18d)['repeat'](0x1e)));_0x52b801?console[_0x5b1693(0x1ae)](_0x5b1693(0x172)+a103_0x1b8119[_0x5b1693(0x1a2)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x5b1693(0x1ae)](_0x5b1693(0x193)+getActiveRegion()),console[_0x5b1693(0x1ae)](_0x5b1693(0x180)+getApiDomain()),console[_0x5b1693(0x1ae)](_0x5b1693(0x1bb)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x5b1693(0x1ae)](_0x5b1693(0x1b2)+getSkillDomain()),console['log']('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x5b1693(0x1ae)](_0x5b1693(0x1b3)+getAppDomain()));console[_0x5b1693(0x1ae)](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)](_0x5b1693(0x145))),console['log'](a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x18d)[_0x5b1693(0x1cf)](0x1e)));if(_0x52b801)console['log'](_0x5b1693(0x172)+a103_0x1b8119[_0x5b1693(0x17c)](_0x5b1693(0x14b)));else{if(_0x4410e0){const _0x31391=await getIsSessionValid();console[_0x5b1693(0x1ae)](_0x5b1693(0x172)+(_0x31391?a103_0x1b8119[_0x5b1693(0x1c7)]('✓\x20Valid'):a103_0x1b8119['red'](_0x5b1693(0x14e))));}else console[_0x5b1693(0x1ae)](_0x5b1693(0x172)+a103_0x1b8119[_0x5b1693(0x1a2)](_0x5b1693(0x1ce)));}return console[_0x5b1693(0x1ae)](),{'ok':!![]};}export const doctorDefinition={'service':a103_0x3bc738(0x1a1),'command':a103_0x3bc738(0x19f),'description':a103_0x3bc738(0x1b4),'risk':a103_0x3bc738(0x1c1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a103_0x497cfa=a103_0x446d;(function(_0x246dc0,_0x27bdec){const _0x52a349=a103_0x446d,_0x112d4d=_0x246dc0();while(!![]){try{const _0x489a45=-parseInt(_0x52a349(0x1a4))/0x1+-parseInt(_0x52a349(0x1f0))/0x2+parseInt(_0x52a349(0x1a6))/0x3+parseInt(_0x52a349(0x1e5))/0x4*(parseInt(_0x52a349(0x1cd))/0x5)+-parseInt(_0x52a349(0x19a))/0x6+parseInt(_0x52a349(0x1c3))/0x7+-parseInt(_0x52a349(0x1b5))/0x8*(-parseInt(_0x52a349(0x1a0))/0x9);if(_0x489a45===_0x27bdec)break;else _0x112d4d['push'](_0x112d4d['shift']());}catch(_0x58dcd7){_0x112d4d['push'](_0x112d4d['shift']());}}}(a103_0x521a,0x997a0));function a103_0x446d(_0xb16c65,_0x4562e7){_0xb16c65=_0xb16c65-0x190;const _0x521a1d=a103_0x521a();let _0x446dff=_0x521a1d[_0xb16c65];return _0x446dff;}import a103_0x57db44 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function a103_0x521a(){const _0x310ecf=['\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20API\x20Endpoints','locale','17704lmgGYE','\x20\x20explicitAppName:\x20','repeat','state','apiDir','version','filter','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','source','status','green','\x20\x20Apps','5784604oyXesb','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','(no\x20file)','✗\x20Not\x20logged\x20in','Project','red','\x20config','keys','yellow','defaultApp','1815065soDGNo','\x20\x20Built-in\x20Skill','cookie','(set,\x20length=','\x20←\x20current','present','length','inherit','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','slice','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','missing','env','\x20config\x20delete\x20region','\x20+\x20','\x20config\x20delete\x20routing\x20--global','empty','stringify','label','(unknown)','raw','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','4nPmPxK','projectConfig','unknown','hasOwnProperty','currentApp','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','apps','current','includes','appCode','1680162hGMAZy','(set\x20via\x20file,\x20length=','(none)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','reason','\x20\x20Skill\x20Version:\x20\x20\x20','global','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','join','platform','\x20\x20Repair\x20global:\x20\x20\x20','(default)','packageVersion','✓\x20Valid','accessKey','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','format','✗\x20Invalid','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','appcode','✓\x20Valid\x20JSON','✗\x20Invalid\x20JSON','arch','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','\x20\x20Config\x20JSON','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','message','doctor','\x20doctor','\x20config\x20delete\x20inherit','routing','\x20(default)','skillVersion','\x20\x20Repair\x20project:\x20\x20\x20','6658464slHxHx','\x20\x20Auth','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','region','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','7911FXRxbx','verbose','call','\x20\x20Package\x20Version:\x20','1061078pxIwGm','value','1514793bFeOip','prototype','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20config\x20delete\x20inherit\x20--global','✗\x20Invalid\x20','log','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Country/Region\x20Configuration'];a103_0x521a=function(){return _0x310ecf;};return a103_0x521a();}function describeRegionValue(_0x10ea4a){const _0x38704a=a103_0x446d;return typeof _0x10ea4a==='string'?JSON[_0x38704a(0x1df)](_0x10ea4a):'<'+(_0x10ea4a===null?'null':typeof _0x10ea4a)+'>';}async function execute(_0x1ea7c2){const _0x1a3cc1=a103_0x446d,_0x1550a5=GIT_COMMIT!==_0x1a3cc1(0x1e7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1a3cc1(0x1d6)](0x0,0xa)+')':VERSION,_0x54c5d2=buildConfigFromFlags({}),_0x24bce7=getCookie();let _0x545805;try{await initGlobalEnvironment(_0x54c5d2);}catch(_0x28314a){_0x545805=_0x28314a instanceof Error?_0x28314a:new Error(String(_0x28314a));}console['log'](),console[_0x1a3cc1(0x1ac)](a103_0x57db44[_0x1a3cc1(0x1eb)](CLI_BIN_NAME+_0x1a3cc1(0x194))),console[_0x1a3cc1(0x1ac)](a103_0x57db44[_0x1a3cc1(0x1b2)]('─'[_0x1a3cc1(0x1b7)](0x32))),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1f8)+_0x1550a5),console['log'](_0x1a3cc1(0x190)+process[_0x1a3cc1(0x1ba)]),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1be)+process[_0x1a3cc1(0x1ff)]+'\x20'+process[_0x1a3cc1(0x20f)]);const _0x430101=inspectBuiltinSkill();console[_0x1a3cc1(0x1ac)](),console[_0x1a3cc1(0x1ac)](a103_0x57db44[_0x1a3cc1(0x1eb)](_0x1a3cc1(0x1ce))),console['log'](a103_0x57db44['gray'](_0x1a3cc1(0x1f4)[_0x1a3cc1(0x1b7)](0x1e)));const _0x1a4448=_0x430101['state']===_0x1a3cc1(0x1ed)?a103_0x57db44[_0x1a3cc1(0x1c1)]('✓\x20'+_0x430101[_0x1a3cc1(0x1b8)]):a103_0x57db44[_0x1a3cc1(0x1c8)]('✗\x20'+_0x430101[_0x1a3cc1(0x1b8)]);console[_0x1a3cc1(0x1ac)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1a4448),console['log'](_0x1a3cc1(0x1a3)+_0x430101[_0x1a3cc1(0x202)]),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1fb)+(_0x430101[_0x1a3cc1(0x198)]||a103_0x57db44['gray'](_0x1a3cc1(0x1e1)))),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1ae)+(_0x430101['installedPath']||a103_0x57db44[_0x1a3cc1(0x1b2)]('(not\x20found)')));if(_0x430101[_0x1a3cc1(0x1fa)])console[_0x1a3cc1(0x1ac)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x430101[_0x1a3cc1(0x1fa)]);_0x430101['state']!==_0x1a3cc1(0x1ed)&&console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1d7)+_0x430101['repairCommand']);console['log'](),console[_0x1a3cc1(0x1ac)](a103_0x57db44[_0x1a3cc1(0x1eb)]('\x20\x20Config\x20Files')),console['log'](a103_0x57db44[_0x1a3cc1(0x1b2)]('\x20\x20─'[_0x1a3cc1(0x1b7)](0x1e)));const _0x35850e=getGlobalConfigPath(),_0x5437b6=getProjectConfigPath();console[_0x1a3cc1(0x1ac)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x35850e||a103_0x57db44[_0x1a3cc1(0x1b2)]('(not\x20found)'))),console['log'](_0x1a3cc1(0x1b1)+(_0x5437b6||a103_0x57db44[_0x1a3cc1(0x1b2)]('(not\x20found)'))),console['log'](),console[_0x1a3cc1(0x1ac)](a103_0x57db44[_0x1a3cc1(0x1eb)](_0x1a3cc1(0x213))),console['log'](a103_0x57db44[_0x1a3cc1(0x1b2)](_0x1a3cc1(0x1f4)[_0x1a3cc1(0x1b7)](0x1e)));const _0x21dfd9=(_0x579042,_0x82c6d2)=>{const _0xf40b54=_0x1a3cc1;if(!_0x82c6d2){console['log']('\x20\x20'+_0x579042[_0xf40b54(0x1a9)](0x11)+'\x20'+a103_0x57db44['gray'](_0xf40b54(0x1c5)));return;}const _0x2fb6be=inspectCliConfigJsonFile(_0x82c6d2);if(_0x2fb6be['status']==='ok')console[_0xf40b54(0x1ac)]('\x20\x20'+_0x579042[_0xf40b54(0x1a9)](0x11)+'\x20'+a103_0x57db44[_0xf40b54(0x1c1)](_0xf40b54(0x20d)));else{if(_0x2fb6be[_0xf40b54(0x1c0)]===_0xf40b54(0x1de))console[_0xf40b54(0x1ac)]('\x20\x20'+_0x579042[_0xf40b54(0x1a9)](0x11)+'\x20'+a103_0x57db44[_0xf40b54(0x1cb)](_0xf40b54(0x1ad)));else _0x2fb6be[_0xf40b54(0x1c0)]===_0xf40b54(0x1d9)?console[_0xf40b54(0x1ac)]('\x20\x20'+_0x579042['padEnd'](0x11)+'\x20'+a103_0x57db44[_0xf40b54(0x1b2)]('(missing)')):(console[_0xf40b54(0x1ac)]('\x20\x20'+_0x579042[_0xf40b54(0x1a9)](0x11)+'\x20'+a103_0x57db44['red'](_0xf40b54(0x20e))),console[_0xf40b54(0x1ac)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a103_0x57db44[_0xf40b54(0x1c8)](_0x2fb6be[_0xf40b54(0x192)])));}};_0x21dfd9('Global',_0x35850e),_0x21dfd9(_0x1a3cc1(0x1c7),_0x5437b6);const _0x4554dd=loadRawConfigLayers(),_0x135d6d=[{'label':_0x1a3cc1(0x1c7),'value':_0x4554dd['projectConfig'][_0x1a3cc1(0x19e)],'present':Object[_0x1a3cc1(0x1a7)][_0x1a3cc1(0x1e8)][_0x1a3cc1(0x1a2)](_0x4554dd[_0x1a3cc1(0x1e6)],_0x1a3cc1(0x19e)),'repairCommand':CLI_BIN_NAME+_0x1a3cc1(0x1db)},{'label':'Global','value':_0x4554dd[_0x1a3cc1(0x1d8)][_0x1a3cc1(0x19e)],'present':Object[_0x1a3cc1(0x1a7)][_0x1a3cc1(0x1e8)][_0x1a3cc1(0x1a2)](_0x4554dd[_0x1a3cc1(0x1d8)],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x1a3cc1(0x1bb)](_0x280931=>_0x280931[_0x1a3cc1(0x1d2)]&&isInvalidLovrabetRegion(_0x280931['value']));if(_0x135d6d[_0x1a3cc1(0x1d3)]>0x0){console[_0x1a3cc1(0x1ac)](),console['log'](a103_0x57db44[_0x1a3cc1(0x1eb)](_0x1a3cc1(0x1af))),console['log'](a103_0x57db44[_0x1a3cc1(0x1b2)]('\x20\x20─'[_0x1a3cc1(0x1b7)](0x1e)));for(const _0x56a4f of _0x135d6d){console[_0x1a3cc1(0x1ac)]('\x20\x20'+_0x56a4f[_0x1a3cc1(0x1e0)][_0x1a3cc1(0x1a9)](0x11)+'\x20'+a103_0x57db44[_0x1a3cc1(0x1c8)](_0x1a3cc1(0x1ab)+describeRegionValue(_0x56a4f[_0x1a3cc1(0x1a5)]))),console['log']('\x20\x20'+('Repair\x20'+_0x56a4f[_0x1a3cc1(0x1e0)]['toLowerCase']()+':')[_0x1a3cc1(0x1a9)](0x10)+'\x20'+_0x56a4f[_0x1a3cc1(0x212)]);}}const _0x58ede3=[Object[_0x1a3cc1(0x1a7)][_0x1a3cc1(0x1e8)][_0x1a3cc1(0x1a2)](_0x4554dd[_0x1a3cc1(0x1d8)],_0x1a3cc1(0x1d4))?_0x1a3cc1(0x1fc):null,Object[_0x1a3cc1(0x1a7)][_0x1a3cc1(0x1e8)][_0x1a3cc1(0x1a2)](_0x4554dd[_0x1a3cc1(0x1e6)],_0x1a3cc1(0x1d4))?_0x1a3cc1(0x1e4):null][_0x1a3cc1(0x1bb)](Boolean);_0x58ede3['length']>0x0&&(console[_0x1a3cc1(0x1ac)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a103_0x57db44['yellow'](_0x1a3cc1(0x1f7)+_0x58ede3[_0x1a3cc1(0x1fe)](_0x1a3cc1(0x1dc))+_0x1a3cc1(0x1c9))),_0x58ede3[_0x1a3cc1(0x1ee)]('project')&&console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x199)+CLI_BIN_NAME+_0x1a3cc1(0x195)),_0x58ede3[_0x1a3cc1(0x1ee)](_0x1a3cc1(0x1fc))&&console[_0x1a3cc1(0x1ac)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x1a3cc1(0x1aa)));const _0x5d74f2=isInvalidLovrabetRegion(_0x54c5d2['raw']?.[_0x1a3cc1(0x19e)]);_0x545805&&!_0x5d74f2&&(console['log'](),console[_0x1a3cc1(0x1ac)](a103_0x57db44['bold'](_0x1a3cc1(0x206))),console[_0x1a3cc1(0x1ac)](a103_0x57db44['gray'](_0x1a3cc1(0x1f4)[_0x1a3cc1(0x1b7)](0x1e))),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a103_0x57db44[_0x1a3cc1(0x1c8)](_0x1a3cc1(0x209))),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1f6)+_0x545805['message']),Object['prototype'][_0x1a3cc1(0x1e8)][_0x1a3cc1(0x1a2)](_0x4554dd['projectConfig'],'routing')&&console[_0x1a3cc1(0x1ac)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x1a3cc1(0x1a7)][_0x1a3cc1(0x1e8)][_0x1a3cc1(0x1a2)](_0x4554dd[_0x1a3cc1(0x1d8)],_0x1a3cc1(0x196))&&console['log'](_0x1a3cc1(0x200)+CLI_BIN_NAME+_0x1a3cc1(0x1dd)));console['log'](),console['log'](a103_0x57db44['bold']('\x20\x20Merged\x20Config')),console[_0x1a3cc1(0x1ac)](a103_0x57db44[_0x1a3cc1(0x1b2)](_0x1a3cc1(0x1f4)[_0x1a3cc1(0x1b7)](0x1e))),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1f5)+(_0x54c5d2[_0x1a3cc1(0x1ef)]||a103_0x57db44['red']('(not\x20set)'))),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1ea)+_0x54c5d2[_0x1a3cc1(0x1da)]),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x207)+_0x54c5d2[_0x1a3cc1(0x1b4)]),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x205)+_0x54c5d2[_0x1a3cc1(0x1b9)]),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1bd)+(_0x54c5d2[_0x1a3cc1(0x1cc)]||a103_0x57db44['gray'](_0x1a3cc1(0x1f2)))),console[_0x1a3cc1(0x1ac)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x54c5d2[_0x1a3cc1(0x1e9)]||a103_0x57db44[_0x1a3cc1(0x1b2)](_0x1a3cc1(0x1f2)))),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1b6)+(_0x54c5d2['explicitAppName']||a103_0x57db44[_0x1a3cc1(0x1b2)](_0x1a3cc1(0x1f2)))),console[_0x1a3cc1(0x1ac)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x54c5d2[_0x1a3cc1(0x208)]||a103_0x57db44[_0x1a3cc1(0x1b2)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x1a3cc1(0x208)]+')'))),console[_0x1a3cc1(0x1ac)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x54c5d2['pageSize']??a103_0x57db44[_0x1a3cc1(0x1b2)](_0x1a3cc1(0x201)))),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1f9)+_0x54c5d2['riskLevel']),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1f3)+_0x54c5d2[_0x1a3cc1(0x1a1)]),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x54c5d2[_0x1a3cc1(0x1cf)]?a103_0x57db44[_0x1a3cc1(0x1c1)]('(set,\x20length='+_0x54c5d2[_0x1a3cc1(0x1cf)][_0x1a3cc1(0x1d3)]+')'):_0x24bce7?a103_0x57db44[_0x1a3cc1(0x1c1)](_0x1a3cc1(0x1f1)+_0x24bce7['length']+')'):a103_0x57db44['gray'](_0x1a3cc1(0x1f2))));const _0x1047c4=Object[_0x1a3cc1(0x1ca)](_0x54c5d2[_0x1a3cc1(0x1ec)]);if(_0x1047c4[_0x1a3cc1(0x1d3)]>0x0){console[_0x1a3cc1(0x1ac)](),console[_0x1a3cc1(0x1ac)](a103_0x57db44['bold'](_0x1a3cc1(0x1c2))),console[_0x1a3cc1(0x1ac)](a103_0x57db44['gray'](_0x1a3cc1(0x1f4)[_0x1a3cc1(0x1b7)](0x1e)));for(const _0xf29b61 of _0x1047c4){const _0x4c0ec6=_0x54c5d2[_0x1a3cc1(0x1ec)][_0xf29b61],_0xdae2e9=_0xf29b61===_0x54c5d2[_0x1a3cc1(0x1cc)],_0xb73523=_0xf29b61===_0x54c5d2[_0x1a3cc1(0x1e9)],_0x24b26e=_0xb73523?a103_0x57db44[_0x1a3cc1(0x1c1)](_0x1a3cc1(0x1d1)):'',_0xa2cbca=_0xdae2e9?_0x1a3cc1(0x197):'';console[_0x1a3cc1(0x1ac)]('\x20\x20'+_0xf29b61+_0xa2cbca+_0x24b26e),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x19d)+_0x4c0ec6[_0x1a3cc1(0x20c)]);const _0x5a6f5b=buildAppDoctorFields(_0x4c0ec6,{'env':_0x54c5d2[_0x1a3cc1(0x1da)],'apiDir':_0x54c5d2[_0x1a3cc1(0x1e2)][_0x1a3cc1(0x1b9)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x54c5d2['cookie']||_0x24bce7||undefined,'accessKey':_0x54c5d2[_0x1a3cc1(0x204)]});console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x211)+_0x5a6f5b[_0x1a3cc1(0x1da)][_0x1a3cc1(0x1a5)]+'\x20\x20'+a103_0x57db44[_0x1a3cc1(0x1b2)]('('+_0x5a6f5b[_0x1a3cc1(0x1da)][_0x1a3cc1(0x1bf)]+')')),console['log'](_0x1a3cc1(0x19f)+_0x5a6f5b['apiDir'][_0x1a3cc1(0x1a5)]+'\x20\x20'+a103_0x57db44[_0x1a3cc1(0x1b2)]('('+_0x5a6f5b[_0x1a3cc1(0x1b9)][_0x1a3cc1(0x1bf)]+')'));const _0x3612dc=_0x5a6f5b[_0x1a3cc1(0x1cf)]['value']?a103_0x57db44[_0x1a3cc1(0x1c1)](_0x1a3cc1(0x1d0)+_0x5a6f5b[_0x1a3cc1(0x1cf)]['value'][_0x1a3cc1(0x1d3)]+')'):a103_0x57db44[_0x1a3cc1(0x1b2)](_0x1a3cc1(0x1f2));console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1fd)+_0x3612dc+'\x20\x20'+a103_0x57db44[_0x1a3cc1(0x1b2)]('('+_0x5a6f5b[_0x1a3cc1(0x1cf)][_0x1a3cc1(0x1bf)]+')'));const _0x1899b1=_0x5a6f5b['accessKey'][_0x1a3cc1(0x1a5)]?a103_0x57db44[_0x1a3cc1(0x1c1)](_0x1a3cc1(0x1d0)+_0x5a6f5b[_0x1a3cc1(0x204)][_0x1a3cc1(0x1a5)]['length']+')'):a103_0x57db44['gray'](_0x1a3cc1(0x1f2));console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x20b)+_0x1899b1+'\x20\x20'+a103_0x57db44[_0x1a3cc1(0x1b2)]('('+_0x5a6f5b['accessKey'][_0x1a3cc1(0x1bf)]+')'));}}console[_0x1a3cc1(0x1ac)](),console[_0x1a3cc1(0x1ac)](a103_0x57db44[_0x1a3cc1(0x1eb)](_0x1a3cc1(0x1b3))),console['log'](a103_0x57db44['gray'](_0x1a3cc1(0x1f4)['repeat'](0x1e)));_0x545805?console[_0x1a3cc1(0x1ac)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a103_0x57db44[_0x1a3cc1(0x1c8)](_0x1a3cc1(0x1c4))):(console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x19c)+getActiveRegion()),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x20a)+getApiDomain()),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1b0)+getUserDomain()),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x210)+getRuntimeDomain()),console[_0x1a3cc1(0x1ac)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1a8)+getKbDomain()),console[_0x1a3cc1(0x1ac)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x1a3cc1(0x1ac)](),console[_0x1a3cc1(0x1ac)](a103_0x57db44[_0x1a3cc1(0x1eb)](_0x1a3cc1(0x19b))),console[_0x1a3cc1(0x1ac)](a103_0x57db44[_0x1a3cc1(0x1b2)](_0x1a3cc1(0x1f4)[_0x1a3cc1(0x1b7)](0x1e)));if(_0x545805)console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1e3)+a103_0x57db44[_0x1a3cc1(0x1cb)](_0x1a3cc1(0x1bc)));else{if(_0x24bce7){const _0x47ae8b=await getIsSessionValid();console[_0x1a3cc1(0x1ac)](_0x1a3cc1(0x1e3)+(_0x47ae8b?a103_0x57db44['green'](_0x1a3cc1(0x203)):a103_0x57db44[_0x1a3cc1(0x1c8)]('✗\x20Expired')));}else console[_0x1a3cc1(0x1ac)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a103_0x57db44[_0x1a3cc1(0x1c8)](_0x1a3cc1(0x1c6)));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a103_0x497cfa(0x193),'command':'check','description':a103_0x497cfa(0x1d5),'risk':a103_0x497cfa(0x191),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104_0x4e323a=a104_0x48fd;function a104_0x6a94(){const _0x5f5378=['filePath','467615pkJfXu','24GXwGaQ','bool','str','452VuuuSd','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','Preview:\x20upload\x20','boolean','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','long-term','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','upload','Uploaded\x20file:\x20','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','download','\x20to\x20development\x20app\x20','filepath','/smartapi/common/uploadFile','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','validation','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','720600pxfQcr','437664YjzItS','360244sIMxVs','filePath\x20is\x20required.','Path\x20to\x20the\x20local\x20file\x20to\x20upload','7XyYYnB','389529bUyoSq','File','path','trim','file','POST','string','appCode','18491DJiUKV','1023hPsgRx'];a104_0x6a94=function(){return _0x5f5378;};return a104_0x6a94();}(function(_0x136435,_0x232371){const _0x284330=a104_0x48fd,_0x25d130=_0x136435();while(!![]){try{const _0x2cb29a=parseInt(_0x284330(0xb0))/0x1+parseInt(_0x284330(0xb7))/0x2*(parseInt(_0x284330(0xb1))/0x3)+parseInt(_0x284330(0xca))/0x4+parseInt(_0x284330(0xb3))/0x5+parseInt(_0x284330(0xc9))/0x6*(-parseInt(_0x284330(0xcd))/0x7)+-parseInt(_0x284330(0xb4))/0x8*(parseInt(_0x284330(0xce))/0x9)+parseInt(_0x284330(0xc8))/0xa;if(_0x2cb29a===_0x232371)break;else _0x25d130['push'](_0x25d130['shift']());}catch(_0x4bcc7c){_0x25d130['push'](_0x25d130['shift']());}}}(a104_0x6a94,0x243be));function a104_0x48fd(_0x5a0392,_0x476f6b){_0x5a0392=_0x5a0392-0xab;const _0x6a9428=a104_0x6a94();let _0x48fd07=_0x6a9428[_0x5a0392];return _0x48fd07;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a104_0x4e323a(0xac),'type':a104_0x4e323a(0xae),'required':!![],'description':a104_0x4e323a(0xcc)},FILEPATH_FLAG={'name':a104_0x4e323a(0xc3),'type':a104_0x4e323a(0xae),'required':!![],'description':a104_0x4e323a(0xc7)},DOWNLOAD_FLAG={'name':a104_0x4e323a(0xc1),'type':a104_0x4e323a(0xba),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a104_0x4e323a(0xbc),'type':a104_0x4e323a(0xba),'description':a104_0x4e323a(0xc5)};function requireFilePath(_0x55573b){const _0xcc4c49=a104_0x4e323a,_0x46fea9=_0x55573b[_0xcc4c49(0xab)]();if(!_0x46fea9)throw CliErrors[_0xcc4c49(0xc6)](_0xcc4c49(0xcb));return _0x46fea9;}const fileUpload={'service':a104_0x4e323a(0xac),'command':a104_0x4e323a(0xbe),'description':a104_0x4e323a(0xbd),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x1b232f){const _0x47e77c=a104_0x4e323a,_0x320f47=requireDevelopmentUploadFile(_0x1b232f[_0x47e77c(0xb6)](_0x47e77c(0xac)),_0x47e77c(0xcf));return{'method':_0x47e77c(0xad),'url':_0x47e77c(0xc4),'body':{'appCode':_0x1b232f[_0x47e77c(0xaf)],'multipart':{'file':_0x320f47}},'description':_0x47e77c(0xb9)+_0x320f47[_0x47e77c(0xd0)]+_0x47e77c(0xc2)+_0x1b232f[_0x47e77c(0xaf)]};},async 'execute'(_0x4f4d3d){const _0x145be5=a104_0x4e323a,_0x5b6637=requireDevelopmentUploadFile(_0x4f4d3d[_0x145be5(0xb6)]('file'),_0x145be5(0xcf)),_0x7ae768=await uploadDevelopmentFile(_0x4f4d3d[_0x145be5(0xaf)],_0x5b6637[_0x145be5(0xd0)]);return{'ok':!![],'data':_0x7ae768,'message':_0x7ae768[_0x145be5(0xb2)]?_0x145be5(0xbf)+_0x7ae768[_0x145be5(0xb2)]+_0x145be5(0xbb):_0x145be5(0xc0)};}},fileQueryUrl={'service':a104_0x4e323a(0xac),'command':'query-url','description':a104_0x4e323a(0xb8),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x555e3f){const _0x49ece8=a104_0x4e323a,_0x45203d=requireFilePath(_0x555e3f[_0x49ece8(0xb6)](_0x49ece8(0xc3))),_0x3d6cdc=await queryDevelopmentFileUrl(_0x45203d,{'download':_0x555e3f[_0x49ece8(0xb5)](_0x49ece8(0xc1)),'longTerm':_0x555e3f[_0x49ece8(0xb5)](_0x49ece8(0xbc))});return{'ok':!![],'data':_0x3d6cdc};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a105_0x3d07(_0x2ca6aa,_0x4d08f4){_0x2ca6aa=_0x2ca6aa-0x11d;const _0xb38160=a105_0xb381();let _0x3d076b=_0xb38160[_0x2ca6aa];return _0x3d076b;}const a105_0x2a0a42=a105_0x3d07;function a105_0xb381(){const _0xdf1971=['17169950fZORTG','current','policyFilePath','3223932TktIRe','read','914338JxIHuY','590DZTmIa','appCode','219842RDARny','policyRelativePath','4016qMGtfR','25072Ibornc','138IxvJYS','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','766502WfCJhK','11637tLnQGn'];a105_0xb381=function(){return _0xdf1971;};return a105_0xb381();}(function(_0x45d85d,_0x1253af){const _0x2d9fbc=a105_0x3d07,_0x10303b=_0x45d85d();while(!![]){try{const _0x20ea3f=parseInt(_0x2d9fbc(0x129))/0x1+parseInt(_0x2d9fbc(0x122))/0x2+-parseInt(_0x2d9fbc(0x127))/0x3+-parseInt(_0x2d9fbc(0x11f))/0x4*(-parseInt(_0x2d9fbc(0x12a))/0x5)+-parseInt(_0x2d9fbc(0x120))/0x6*(-parseInt(_0x2d9fbc(0x12c))/0x7)+parseInt(_0x2d9fbc(0x11e))/0x8*(parseInt(_0x2d9fbc(0x123))/0x9)+-parseInt(_0x2d9fbc(0x124))/0xa;if(_0x20ea3f===_0x1253af)break;else _0x10303b['push'](_0x10303b['shift']());}catch(_0x5e2ccf){_0x10303b['push'](_0x10303b['shift']());}}}(a105_0xb381,0x96a26));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':'instant-api-policy','command':a105_0x2a0a42(0x125),'description':'Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','risk':a105_0x2a0a42(0x128),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x1c294a){const _0x38f5d8=a105_0x2a0a42,_0x477e4c=loadInstantApiPolicyLocalConfig(_0x1c294a[_0x38f5d8(0x12b)]),_0x2f0b72=await getCurrentInstantApiPolicy(_0x1c294a[_0x38f5d8(0x12b)]);return{'ok':!![],'data':{'appCode':_0x1c294a[_0x38f5d8(0x12b)],'configured':_0x2f0b72!==null,'filePath':_0x477e4c[_0x38f5d8(0x126)],'relativePath':_0x477e4c[_0x38f5d8(0x11d)],'policy':projectCurrentPolicy(_0x2f0b72)},'message':_0x2f0b72?'Current\x20Instant\x20API\x20policy\x20revision\x20'+_0x2f0b72['revision']:_0x38f5d8(0x121)+_0x1c294a['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a106_0x1b02(){const _0x208a64=['3938964oOoHHB','632ZyuedS','10pEGSTC','24pkoViQ','42745450oYXWZN','1293538mvfQCj','104pDNMER','5189406eyCYHB','13486995qFyaal','3857eEyZGu','2RYsULm','51445bLNFJr'];a106_0x1b02=function(){return _0x208a64;};return a106_0x1b02();}(function(_0x35b9f9,_0x2cf4ec){const _0x383a4f=a106_0x3db4,_0x22202d=_0x35b9f9();while(!![]){try{const _0x2fb635=-parseInt(_0x383a4f(0x15c))/0x1*(parseInt(_0x383a4f(0x157))/0x2)+-parseInt(_0x383a4f(0x159))/0x3+parseInt(_0x383a4f(0x153))/0x4*(-parseInt(_0x383a4f(0x15d))/0x5)+-parseInt(_0x383a4f(0x15e))/0x6+parseInt(_0x383a4f(0x15b))/0x7*(parseInt(_0x383a4f(0x158))/0x8)+-parseInt(_0x383a4f(0x15a))/0x9*(parseInt(_0x383a4f(0x154))/0xa)+parseInt(_0x383a4f(0x156))/0xb*(parseInt(_0x383a4f(0x155))/0xc);if(_0x2fb635===_0x2cf4ec)break;else _0x22202d['push'](_0x22202d['shift']());}catch(_0x147d8d){_0x22202d['push'](_0x22202d['shift']());}}}(a106_0x1b02,0xee0a4));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';function a106_0x3db4(_0x3cf63a,_0x417118){_0x3cf63a=_0x3cf63a-0x153;const _0x1b0243=a106_0x1b02();let _0x3db4fe=_0x1b0243[_0x3cf63a];return _0x3db4fe;}import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0xf65630=a107_0x4a32;(function(_0x59c627,_0x360b49){const _0x4431cc=a107_0x4a32,_0x4c9985=_0x59c627();while(!![]){try{const _0x1f2063=parseInt(_0x4431cc(0x1be))/0x1+-parseInt(_0x4431cc(0x1a7))/0x2+parseInt(_0x4431cc(0x1a6))/0x3+-parseInt(_0x4431cc(0x1bf))/0x4*(-parseInt(_0x4431cc(0x1b8))/0x5)+parseInt(_0x4431cc(0x1a9))/0x6*(parseInt(_0x4431cc(0x1b4))/0x7)+parseInt(_0x4431cc(0x1bc))/0x8*(-parseInt(_0x4431cc(0x1b5))/0x9)+-parseInt(_0x4431cc(0x1af))/0xa;if(_0x1f2063===_0x360b49)break;else _0x4c9985['push'](_0x4c9985['shift']());}catch(_0x434da7){_0x4c9985['push'](_0x4c9985['shift']());}}}(a107_0x3333,0x94252));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a107_0x4a32(_0x563e8e,_0x382938){_0x563e8e=_0x563e8e-0x1a5;const _0x333390=a107_0x3333();let _0x4a32e0=_0x333390[_0x563e8e];return _0x4a32e0;}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a107_0x3333(){const _0x5e6242=['bool','322179rcKPdu','212EMCHbX','appCode','write','1442355obdqyc','1535286eYqMIh','Kept','6hKfFYS','str','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','deny','string','action','11186950CvHbZW','\x20Instant\x20API\x20policy\x20file\x20for\x20','policyRelativePath','default-action','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','3769157WBdxRU','261qWNGxU','force','init','111515NWxSeP','Created','Replaced','allow','8368MsWatJ'];a107_0x3333=function(){return _0x5e6242;};return a107_0x3333();}export const instantApiPolicyInit={'service':'instant-api-policy','command':a107_0xf65630(0x1b7),'description':a107_0xf65630(0x1ab),'risk':a107_0xf65630(0x1a5),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'default-action','type':a107_0xf65630(0x1ad),'enum':[a107_0xf65630(0x1bb),a107_0xf65630(0x1ac)],'default':a107_0xf65630(0x1bb),'description':a107_0xf65630(0x1b3)},FORCE_FLAG],async 'validate'(_0x266989){requireForceConfirmation(_0x266989);},async 'execute'(_0xf4be7c){const _0x5c175e=a107_0xf65630;requireForceConfirmation(_0xf4be7c);const _0x4afe56=_0xf4be7c[_0x5c175e(0x1aa)](_0x5c175e(0x1b2))===_0x5c175e(0x1ac)?_0x5c175e(0x1ac):_0x5c175e(0x1bb),_0x6eca1a=loadInstantApiPolicyLocalConfig(_0xf4be7c[_0x5c175e(0x1c0)]),_0x170c5a=createDefaultInstantApiPolicyConfig(_0xf4be7c[_0x5c175e(0x1c0)],_0x4afe56),_0x324436=await writeInstantApiPolicyConfigFile(_0x6eca1a,_0x170c5a,{'force':_0xf4be7c[_0x5c175e(0x1bd)](_0x5c175e(0x1b6))}),_0x5ea53c={'created':_0x5c175e(0x1b9),'overwritten':_0x5c175e(0x1ba),'unchanged':_0x5c175e(0x1a8)}[_0x324436[_0x5c175e(0x1ae)]];return{'ok':!![],'data':{'operation':_0x5c175e(0x1b7),'selector':{'appCode':_0xf4be7c[_0x5c175e(0x1c0)]},'filePath':_0x6eca1a['policyFilePath'],'relativePath':_0x6eca1a[_0x5c175e(0x1b1)],'action':_0x324436[_0x5c175e(0x1ae)],'config':_0x170c5a},'message':_0x5ea53c+_0x5c175e(0x1b0)+_0xf4be7c[_0x5c175e(0x1c0)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108_0x49bc59=a108_0x5a0e;function a108_0x5737(){const _0x1a320c=['40857256HHJwzc','normalizedConfig','configHash','all','local','instant-api-policy','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','`;\x20do\x20not\x20resubmit\x20automatically.','validation','2864322SoxitX','396466ghptyd','1314ErbzCE','2692owbfjR','315470qttlhb','policyRelativePath','2277048iXcPML','instant_api_policy_publish_outcome_unknown','appCode','1jURDxY','1421150ZadTFO','Inspect\x20with\x20`','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','publish','81QOgjFt','revision','Published\x20Instant\x20API\x20policy\x20revision\x20','verified','high-risk-write','push','21koISsx','before','policyFilePath','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','instant_api_policy_publish_verification_failed','cause','expectedRevision','POST','changeSummary','/publish','config'];a108_0x5737=function(){return _0x1a320c;};return a108_0x5737();}function a108_0x5a0e(_0x456bbc,_0x17b592){_0x456bbc=_0x456bbc-0x69;const _0x573752=a108_0x5737();let _0x5a0e9c=_0x573752[_0x456bbc];return _0x5a0e9c;}(function(_0x4d5b6d,_0x2d5495){const _0x30a3c2=a108_0x5a0e,_0x22ced5=_0x4d5b6d();while(!![]){try{const _0x441a46=-parseInt(_0x30a3c2(0x6e))/0x1*(parseInt(_0x30a3c2(0x8e))/0x2)+-parseInt(_0x30a3c2(0x8f))/0x3*(parseInt(_0x30a3c2(0x90))/0x4)+parseInt(_0x30a3c2(0x69))/0x5+-parseInt(_0x30a3c2(0x8d))/0x6+-parseInt(_0x30a3c2(0x79))/0x7*(parseInt(_0x30a3c2(0x6b))/0x8)+-parseInt(_0x30a3c2(0x73))/0x9*(parseInt(_0x30a3c2(0x6f))/0xa)+parseInt(_0x30a3c2(0x84))/0xb;if(_0x441a46===_0x2d5495)break;else _0x22ced5['push'](_0x22ced5['shift']());}catch(_0x310412){_0x22ced5['push'](_0x22ced5['shift']());}}}(a108_0x5737,0xa4914));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x4c3028){const _0x368199=a108_0x5a0e,{local:_0xb0c142,config:_0x40e789}=await readFixedPolicy(_0x4c3028),_0x2dbd56=readChangeSummary(_0x4c3028),_0x33490e=readExpectedRevision(_0x4c3028),[_0x225bca,_0x1cd8e5]=await Promise[_0x368199(0x87)]([getCurrentInstantApiPolicy(_0x4c3028[_0x368199(0x6d)]),validateInstantApiPolicy({'appCode':_0x4c3028['appCode'],'config':_0x40e789})]);return assertExpectedRevision(_0x225bca,_0x33490e),{'local':_0xb0c142,'config':_0x40e789,'changeSummary':_0x2dbd56,'expectedRevision':_0x33490e,'before':_0x225bca,'validation':_0x1cd8e5};}export const instantApiPolicyPublish={'service':a108_0x49bc59(0x89),'command':'publish','description':a108_0x49bc59(0x7c),'risk':a108_0x49bc59(0x77),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a108_0x49bc59(0x71),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x45d37a){readChangeSummary(_0x45d37a),readExpectedRevision(_0x45d37a);},async 'dryRun'(_0x21ac8d){const _0x1a35b3=a108_0x49bc59,_0x52f15c=await preparePublish(_0x21ac8d);return asDryRunResult({'operation':_0x1a35b3(0x72),'selector':{'appCode':_0x21ac8d['appCode']},'before':projectCurrentPolicy(_0x52f15c[_0x1a35b3(0x7a)]),'after':{'revision':_0x52f15c[_0x1a35b3(0x7a)]?_0x52f15c[_0x1a35b3(0x7a)][_0x1a35b3(0x74)]+0x1:0x1,'configHash':_0x52f15c[_0x1a35b3(0x8c)][_0x1a35b3(0x86)],'config':_0x52f15c[_0x1a35b3(0x8c)][_0x1a35b3(0x85)]},'filePath':_0x52f15c[_0x1a35b3(0x88)][_0x1a35b3(0x7b)],'relativePath':_0x52f15c[_0x1a35b3(0x88)][_0x1a35b3(0x6a)],'dryRun':!![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0x1a35b3(0x82)},'warnings':expectedRevisionWarnings(_0x52f15c['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x52f15c['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x1a35b3(0x80),'url':INSTANT_API_POLICY_BASE_PATH+_0x1a35b3(0x82)});},async 'execute'(_0x5d2e24){const _0x15fc29=a108_0x49bc59,_0xd895bb=await preparePublish(_0x5d2e24);let _0x3f3185=![];try{await publishInstantApiPolicy({'appCode':_0x5d2e24[_0x15fc29(0x6d)],'config':_0xd895bb[_0x15fc29(0x83)],..._0xd895bb[_0x15fc29(0x81)]?{'changeSummary':_0xd895bb[_0x15fc29(0x81)]}:{}});}catch(_0x2a96ed){if(!isPlatformTransportFailure(_0x2a96ed))throw _0x2a96ed;_0x3f3185=!![];}let _0x1c9e4f;try{_0x1c9e4f=await getCurrentInstantApiPolicy(_0x5d2e24[_0x15fc29(0x6d)]);}catch(_0xf0365e){const _0xd18729=instantApiPolicyError(_0x3f3185?'instant_api_policy_publish_outcome_unknown':'instant_api_policy_publish_verification_unavailable','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0x15fc29(0x70)+mutationLookupCommand()+_0x15fc29(0x8b));Object['defineProperty'](_0xd18729,_0x15fc29(0x7e),{'value':_0xf0365e,'enumerable':![]});throw _0xd18729;}const _0x288d58=_0x1c9e4f&&(_0xd895bb[_0x15fc29(0x7a)]===null||_0x1c9e4f['revision']>_0xd895bb[_0x15fc29(0x7a)]['revision']),_0x3ca2b8=_0x1c9e4f?.[_0x15fc29(0x86)]===_0xd895bb[_0x15fc29(0x8c)][_0x15fc29(0x86)];if(!_0x1c9e4f||!_0x288d58||!_0x3ca2b8)throw instantApiPolicyError(_0x3f3185?_0x15fc29(0x6c):_0x15fc29(0x7d),'Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.',_0x15fc29(0x70)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');const _0x3cee8d=[...expectedRevisionWarnings(_0xd895bb['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x3f3185&&_0x3cee8d[_0x15fc29(0x78)](_0x15fc29(0x8a)),{'ok':!![],'data':{'operation':'publish','selector':{'appCode':_0x5d2e24[_0x15fc29(0x6d)]},'before':projectCurrentPolicy(_0xd895bb[_0x15fc29(0x7a)]),'after':projectCurrentPolicy(_0x1c9e4f),'filePath':_0xd895bb[_0x15fc29(0x88)][_0x15fc29(0x7b)],'relativePath':_0xd895bb[_0x15fc29(0x88)]['policyRelativePath'],'dryRun':![],'backend':{'method':_0x15fc29(0x80),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':_0x3cee8d,'verification':{'status':_0x15fc29(0x76),'recoveredAfterUnknownResponse':_0x3f3185,'expectedRevision':_0xd895bb[_0x15fc29(0x7f)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x15fc29(0x75)+_0x1c9e4f[_0x15fc29(0x74)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a109_0x2e14ae=a109_0x1bf4;(function(_0x48fa08,_0x4acb4e){const _0x5b42fc=a109_0x1bf4,_0x3b3ed3=_0x48fa08();while(!![]){try{const _0x5c75dc=-parseInt(_0x5b42fc(0xbd))/0x1+parseInt(_0x5b42fc(0xba))/0x2*(-parseInt(_0x5b42fc(0xbb))/0x3)+parseInt(_0x5b42fc(0xc3))/0x4+-parseInt(_0x5b42fc(0xc0))/0x5+-parseInt(_0x5b42fc(0xc9))/0x6*(-parseInt(_0x5b42fc(0xc6))/0x7)+parseInt(_0x5b42fc(0xd0))/0x8*(-parseInt(_0x5b42fc(0xbf))/0x9)+parseInt(_0x5b42fc(0xc4))/0xa;if(_0x5c75dc===_0x4acb4e)break;else _0x3b3ed3['push'](_0x3b3ed3['shift']());}catch(_0x1eb597){_0x3b3ed3['push'](_0x3b3ed3['shift']());}}}(a109_0x265f,0xe9115));function a109_0x1bf4(_0x2d4d39,_0x5ef818){_0x2d4d39=_0x2d4d39-0xb6;const _0x265ffe=a109_0x265f();let _0x1bf410=_0x265ffe[_0x2d4d39];return _0x1bf410;}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a109_0x2e14ae(0xb8),'command':a109_0x2e14ae(0xb6),'description':a109_0x2e14ae(0xc7),'risk':a109_0x2e14ae(0xca),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x26e126){requireForceConfirmation(_0x26e126);},async 'execute'(_0x3ab172){const _0x2aac0c=a109_0x2e14ae;requireForceConfirmation(_0x3ab172);const _0x137769=await getCurrentInstantApiPolicy(_0x3ab172[_0x2aac0c(0xce)]);if(!_0x137769)throw instantApiPolicyError(_0x2aac0c(0xbc),_0x2aac0c(0xcd)+_0x3ab172['appCode']+'.','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.');const _0x1b9141=loadInstantApiPolicyLocalConfig(_0x3ab172[_0x2aac0c(0xce)]),_0x28d5e4=await writeInstantApiPolicyConfigFile(_0x1b9141,_0x137769[_0x2aac0c(0xbe)],{'force':_0x3ab172[_0x2aac0c(0xb7)](_0x2aac0c(0xcb))});return{'ok':!![],'data':{'operation':_0x2aac0c(0xb6),'selector':{'appCode':_0x3ab172['appCode'],'revision':_0x137769['revision']},'filePath':_0x1b9141['policyFilePath'],'relativePath':_0x1b9141[_0x2aac0c(0xc8)],'action':_0x28d5e4[_0x2aac0c(0xc5)],'configHash':_0x137769['configHash']},'message':(_0x28d5e4[_0x2aac0c(0xc5)]===_0x2aac0c(0xcc)?_0x2aac0c(0xc2):_0x2aac0c(0xc1))+_0x2aac0c(0xb9)+_0x137769[_0x2aac0c(0xcf)]};}};function a109_0x265f(){const _0xb4b34=['Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','appCode','revision','258696SKCkhP','pull','bool','instant-api-policy','\x20Instant\x20API\x20policy\x20revision\x20','12646WzLInU','159EIZYxz','instant_api_policy_not_configured','1193312KGgXbA','config','261jlrPYV','7808455ZWMttI','Pulled','Kept','6988004SQNAHU','15787720UieSyz','action','49jLVlDs','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','policyRelativePath','1420086aoccQR','write','force','unchanged'];a109_0x265f=function(){return _0xb4b34;};return a109_0x265f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a110_0x582dfd=a110_0x59ed;(function(_0x387839,_0x1f49ea){const _0x3b16c2=a110_0x59ed,_0x20936e=_0x387839();while(!![]){try{const _0x35889f=parseInt(_0x3b16c2(0x71))/0x1+-parseInt(_0x3b16c2(0x74))/0x2+-parseInt(_0x3b16c2(0x76))/0x3*(-parseInt(_0x3b16c2(0x7b))/0x4)+-parseInt(_0x3b16c2(0x7a))/0x5*(parseInt(_0x3b16c2(0x72))/0x6)+-parseInt(_0x3b16c2(0x75))/0x7*(-parseInt(_0x3b16c2(0x73))/0x8)+-parseInt(_0x3b16c2(0x80))/0x9+parseInt(_0x3b16c2(0x7c))/0xa*(parseInt(_0x3b16c2(0x7e))/0xb);if(_0x35889f===_0x1f49ea)break;else _0x20936e['push'](_0x20936e['shift']());}catch(_0x115a45){_0x20936e['push'](_0x20936e['shift']());}}}(a110_0x2a7f,0x35166));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':a110_0x582dfd(0x7f),'command':a110_0x582dfd(0x77),'description':a110_0x582dfd(0x7d),'risk':a110_0x582dfd(0x78),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x1bcf20){readRevision(_0x1bcf20);},async 'execute'(_0x301eb9){const _0x1d8309=a110_0x582dfd,_0x5e80a0=readRevision(_0x301eb9),_0x5e987e=await getInstantApiPolicyRevision(_0x301eb9[_0x1d8309(0x79)],_0x5e80a0);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x5e987e)},'message':'Loaded\x20Instant\x20API\x20policy\x20revision\x20'+_0x5e80a0};}};function a110_0x59ed(_0x292a9c,_0xeceacb){_0x292a9c=_0x292a9c-0x71;const _0x2a7fd9=a110_0x2a7f();let _0x59ed07=_0x2a7fd9[_0x292a9c];return _0x59ed07;}function a110_0x2a7f(){const _0x1c720a=['Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','385PNsCBn','instant-api-policy','1961028VxYjku','201198rylxTX','4398ITAgGX','281272NPZFiJ','177784UPByOq','7nZZqYR','3KkDEwD','revision','read','appCode','2005TlinwH','731644HyIhrv','113970NtVWRm'];a110_0x2a7f=function(){return _0x1c720a;};return a110_0x2a7f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a111_0x453786=a111_0x4f52;function a111_0x4f52(_0x2fe714,_0x1a7e03){_0x2fe714=_0x2fe714-0x118;const _0x1d975b=a111_0x1d97();let _0x4f5286=_0x1d975b[_0x2fe714];return _0x4f5286;}(function(_0x46a0ad,_0x18098f){const _0x21e2c6=a111_0x4f52,_0x487f0a=_0x46a0ad();while(!![]){try{const _0x8ffce5=parseInt(_0x21e2c6(0x119))/0x1+parseInt(_0x21e2c6(0x127))/0x2+parseInt(_0x21e2c6(0x11e))/0x3*(parseInt(_0x21e2c6(0x11b))/0x4)+-parseInt(_0x21e2c6(0x11a))/0x5+-parseInt(_0x21e2c6(0x123))/0x6*(-parseInt(_0x21e2c6(0x11d))/0x7)+-parseInt(_0x21e2c6(0x126))/0x8*(parseInt(_0x21e2c6(0x122))/0x9)+parseInt(_0x21e2c6(0x11c))/0xa*(-parseInt(_0x21e2c6(0x120))/0xb);if(_0x8ffce5===_0x18098f)break;else _0x487f0a['push'](_0x487f0a['shift']());}catch(_0x35b18a){_0x487f0a['push'](_0x487f0a['shift']());}}}(a111_0x1d97,0xc3462));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';function a111_0x1d97(){const _0xa99c3c=['232448VNgtFl','3165300jykimV','appCode','length','743154XECsTN','7623315ebfDkJ','4AIKBPq','1400AckkhJ','372785PFISOZ','3124302OPYccS','map','73172UhBBmn','instant-api-policy','117LYJzdU','30dPXIvG','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','read'];a111_0x1d97=function(){return _0xa99c3c;};return a111_0x1d97();}import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a111_0x453786(0x121),'command':'revisions','description':a111_0x453786(0x124),'risk':a111_0x453786(0x125),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x1302c4){const _0x14a1df=a111_0x453786,_0x1f60c4=await listInstantApiPolicyRevisions(_0x1302c4[_0x14a1df(0x128)]);return{'ok':!![],'data':{'appCode':_0x1302c4[_0x14a1df(0x128)],'total':_0x1f60c4[_0x14a1df(0x118)],'revisions':_0x1f60c4[_0x14a1df(0x11f)](projectRevisionSummary)},'message':'Found\x20'+_0x1f60c4[_0x14a1df(0x118)]+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x4f08f3=a112_0x2c9f;function a112_0x5064(){const _0xca8c85=['Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','1399248njTXrv','all','1347444kSbuvx','Inspect\x20with\x20`','defineProperty','400710xUXTXX','configHash','changeSummary','56swrURe','555dVDEtT','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','instant_api_policy_rollback_verification_unavailable','39818ZnrApi','/rollback','before','expectedRevision','instant_api_policy_rollback_verification_failed','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','appCode','target','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','20WOfEXm','3yCkytY','verified','POST','Rolled\x20Instant\x20API\x20policy\x20revision\x20','7GvyyHW','1283722slstrd','67131UZjITq','7988FUQvoy','instant_api_policy_rollback_outcome_unknown','\x20forward\x20to\x20revision\x20','revision','planned','instant_api_policy_not_configured'];a112_0x5064=function(){return _0xca8c85;};return a112_0x5064();}(function(_0x5ae121,_0x3cf9f8){const _0x231314=a112_0x2c9f,_0x4a7e30=_0x5ae121();while(!![]){try{const _0x43d3f4=-parseInt(_0x231314(0x17d))/0x1*(parseInt(_0x231314(0x173))/0x2)+parseInt(_0x231314(0x16c))/0x3+parseInt(_0x231314(0x160))/0x4*(parseInt(_0x231314(0x170))/0x5)+-parseInt(_0x231314(0x169))/0x6*(-parseInt(_0x231314(0x15d))/0x7)+-parseInt(_0x231314(0x16f))/0x8*(parseInt(_0x231314(0x15f))/0x9)+parseInt(_0x231314(0x17c))/0xa*(-parseInt(_0x231314(0x15e))/0xb)+-parseInt(_0x231314(0x167))/0xc;if(_0x43d3f4===_0x3cf9f8)break;else _0x4a7e30['push'](_0x4a7e30['shift']());}catch(_0x478e08){_0x4a7e30['push'](_0x4a7e30['shift']());}}}(a112_0x5064,0x1cc67));function a112_0x2c9f(_0x477b0d,_0x2fa4ca){_0x477b0d=_0x477b0d-0x15d;const _0x506474=a112_0x5064();let _0x2c9ff3=_0x506474[_0x477b0d];return _0x2c9ff3;}import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';async function prepareRollback(_0x4aa51a){const _0x26ffec=a112_0x2c9f,_0x3f5833=readRevision(_0x4aa51a),_0x92dbde=readChangeSummary(_0x4aa51a),_0x2c1994=readExpectedRevision(_0x4aa51a),[_0xeefa15,_0x5563d1]=await Promise[_0x26ffec(0x168)]([getCurrentInstantApiPolicy(_0x4aa51a[_0x26ffec(0x179)]),getInstantApiPolicyRevision(_0x4aa51a[_0x26ffec(0x179)],_0x3f5833)]);if(!_0xeefa15)throw instantApiPolicyError(_0x26ffec(0x165),_0x26ffec(0x166)+_0x4aa51a[_0x26ffec(0x179)]+'.');return assertExpectedRevision(_0xeefa15,_0x2c1994),{'revision':_0x3f5833,'changeSummary':_0x92dbde,'expectedRevision':_0x2c1994,'before':_0xeefa15,'target':_0x5563d1};}export const instantApiPolicyRollback={'service':'instant-api-policy','command':'rollback','description':a112_0x4f08f3(0x17b),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x4b0dbd){readRevision(_0x4b0dbd),readChangeSummary(_0x4b0dbd),readExpectedRevision(_0x4b0dbd);},async 'dryRun'(_0x235248){const _0x1f0aa1=a112_0x4f08f3,_0x47506c=await prepareRollback(_0x235248);return asDryRunResult({'operation':'rollback','selector':{'appCode':_0x235248[_0x1f0aa1(0x179)],'sourceRevision':_0x47506c[_0x1f0aa1(0x163)]},'before':projectCurrentPolicy(_0x47506c['before']),'after':{'revision':_0x47506c[_0x1f0aa1(0x175)]['revision']+0x1,'sourceRevision':projectRevisionDetail(_0x47506c[_0x1f0aa1(0x17a)])},'dryRun':!![],'backend':{'method':_0x1f0aa1(0x17f),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x47506c['expectedRevision']),'verification':{'status':_0x1f0aa1(0x164),'expectedRevision':_0x47506c[_0x1f0aa1(0x176)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x1f0aa1(0x17f),'url':INSTANT_API_POLICY_BASE_PATH+_0x1f0aa1(0x174)});},async 'execute'(_0x23e2be){const _0x23e583=a112_0x4f08f3,_0xfe140e=await prepareRollback(_0x23e2be);let _0x9092d7=![];try{await rollbackInstantApiPolicy({'appCode':_0x23e2be[_0x23e583(0x179)],'revision':_0xfe140e[_0x23e583(0x163)],..._0xfe140e[_0x23e583(0x16e)]?{'changeSummary':_0xfe140e[_0x23e583(0x16e)]}:{}});}catch(_0x3ead83){if(!isPlatformTransportFailure(_0x3ead83))throw _0x3ead83;_0x9092d7=!![];}let _0x40c775;try{_0x40c775=await getCurrentInstantApiPolicy(_0x23e2be[_0x23e583(0x179)]);}catch(_0x44c86e){const _0x4db915=instantApiPolicyError(_0x9092d7?_0x23e583(0x161):_0x23e583(0x172),_0x23e583(0x171),'Inspect\x20with\x20`'+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x23e583(0x16b)](_0x4db915,'cause',{'value':_0x44c86e,'enumerable':![]});throw _0x4db915;}const _0x128161=_0x40c775&&_0x40c775[_0x23e583(0x163)]>_0xfe140e[_0x23e583(0x175)]['revision'],_0x548325=_0x40c775?.[_0x23e583(0x16d)]===_0xfe140e['target'][_0x23e583(0x16d)];if(!_0x40c775||!_0x128161||!_0x548325)throw instantApiPolicyError(_0x9092d7?'instant_api_policy_rollback_outcome_unknown':_0x23e583(0x177),'Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.',_0x23e583(0x16a)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');const _0x4a091=[...expectedRevisionWarnings(_0xfe140e['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x9092d7&&_0x4a091['push'](_0x23e583(0x178)),{'ok':!![],'data':{'operation':'rollback','selector':{'appCode':_0x23e2be['appCode'],'sourceRevision':_0xfe140e[_0x23e583(0x163)]},'before':projectCurrentPolicy(_0xfe140e[_0x23e583(0x175)]),'after':projectCurrentPolicy(_0x40c775),'dryRun':![],'backend':{'method':_0x23e583(0x17f),'path':INSTANT_API_POLICY_BASE_PATH+_0x23e583(0x174)},'warnings':_0x4a091,'verification':{'status':_0x23e583(0x17e),'recoveredAfterUnknownResponse':_0x9092d7,'expectedRevision':_0xfe140e[_0x23e583(0x176)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x23e583(0x180)+_0xfe140e[_0x23e583(0x163)]+_0x23e583(0x162)+_0x40c775[_0x23e583(0x163)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x4c7776=a113_0x11ec;(function(_0x1f418a,_0x1d9b1c){const _0xbc5a5b=a113_0x11ec,_0x420f41=_0x1f418a();while(!![]){try{const _0x5051c2=-parseInt(_0xbc5a5b(0x170))/0x1*(parseInt(_0xbc5a5b(0x166))/0x2)+-parseInt(_0xbc5a5b(0x151))/0x3+parseInt(_0xbc5a5b(0x17d))/0x4*(-parseInt(_0xbc5a5b(0x16c))/0x5)+-parseInt(_0xbc5a5b(0x16b))/0x6+-parseInt(_0xbc5a5b(0x154))/0x7+-parseInt(_0xbc5a5b(0x159))/0x8+parseInt(_0xbc5a5b(0x160))/0x9;if(_0x5051c2===_0x1d9b1c)break;else _0x420f41['push'](_0x420f41['shift']());}catch(_0x3c538d){_0x420f41['push'](_0x420f41['shift']());}}}(a113_0xddd9,0xe78c7));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a113_0xddd9(){const _0x22f73c=['Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','number','operatorId','config','--change-summary\x20cannot\x20exceed\x202000\x20characters.','appCode','trim','createUserId','updateUserId','12siXGXW','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','expected-revision','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','/smartapi/instant-api-policy','2519010jMxMOn','configHash','length','6651288xTsRjq','changeType','rules','instant_api_policy_change_summary_invalid','force','14798760DrGcan','gmtCreate','flag','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','changeSummary','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','instant_api_policy_expected_revision_invalid','61030935CDoAoC','enabled','change-summary','revision','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','num','2516zbUymY','version','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','str','NaN','454146wwrUrz','1493140KwMhDC','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','policyId','isSafeInteger','971dhLjJQ','Positive\x20published\x20policy\x20revision','bool','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.'];a113_0xddd9=function(){return _0x22f73c;};return a113_0xddd9();}export const INSTANT_API_POLICY_BASE_PATH=a113_0x4c7776(0x150);export const RUNTIME_CACHE_WARNING=a113_0x4c7776(0x164);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a113_0x4c7776(0x173);function a113_0x11ec(_0x27a365,_0x1ee541){_0x27a365=_0x27a365-0x14f;const _0xddd9ac=a113_0xddd9();let _0x11ec43=_0xddd9ac[_0x27a365];return _0x11ec43;}export const FORCE_FLAG={'name':a113_0x4c7776(0x158),'type':'boolean','default':![],'description':'Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes'};export const CHANGE_SUMMARY_FLAG={'name':a113_0x4c7776(0x162),'type':'string','required':![],'description':a113_0x4c7776(0x174)};export const REVISION_FLAG={'name':a113_0x4c7776(0x163),'type':a113_0x4c7776(0x175),'required':!![],'description':a113_0x4c7776(0x171)};export const EXPECTED_REVISION_FLAG={'name':a113_0x4c7776(0x17f),'type':a113_0x4c7776(0x175),'required':![],'description':a113_0x4c7776(0x16d)};export function requireForceConfirmation(_0x28df73){const _0x222b35=a113_0x4c7776;if(!_0x28df73[_0x222b35(0x172)]('force')||_0x28df73[_0x222b35(0x172)]('yes'))return;throw instantApiPolicyError('instant_api_policy_force_confirmation_required',_0x222b35(0x168),'Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.');}export function readChangeSummary(_0x5337ca){const _0x46787e=a113_0x4c7776,_0x11e5d4=_0x5337ca[_0x46787e(0x169)](_0x46787e(0x162))[_0x46787e(0x17a)]();if(!_0x11e5d4)return undefined;if(_0x11e5d4[_0x46787e(0x153)]>0x7d0)throw instantApiPolicyError(_0x46787e(0x157),_0x46787e(0x178));return _0x11e5d4;}export function readRevision(_0x29faaa){const _0x142311=a113_0x4c7776,_0x9d6561=_0x29faaa[_0x142311(0x165)]('revision',Number[_0x142311(0x16a)]);if(!Number[_0x142311(0x16f)](_0x9d6561)||_0x9d6561<=0x0)throw instantApiPolicyError('instant_api_policy_revision_invalid',_0x142311(0x17e));return _0x9d6561;}export function readExpectedRevision(_0x5131dd){const _0x47a226=a113_0x4c7776;if(_0x5131dd[_0x47a226(0x15b)](_0x47a226(0x17f))===undefined)return undefined;const _0x17f649=_0x5131dd[_0x47a226(0x165)]('expected-revision',Number[_0x47a226(0x16a)]);if(!Number[_0x47a226(0x16f)](_0x17f649)||_0x17f649<0x0)throw instantApiPolicyError(_0x47a226(0x15f),_0x47a226(0x15e));return _0x17f649;}export function assertExpectedRevision(_0x1606a6,_0x53774b){const _0xe9c82f=a113_0x4c7776;if(_0x53774b===undefined)return;const _0x3d145b=_0x1606a6?.['revision']??0x0;if(_0x3d145b!==_0x53774b)throw instantApiPolicyError('instant_api_policy_revision_mismatch',_0xe9c82f(0x14f),'Expected\x20revision\x20'+_0x53774b+';\x20current\x20revision\x20is\x20'+_0x3d145b+'.\x20Run\x20current\x20and\x20review\x20before\x20retrying.');}export async function readFixedPolicy(_0x292905){const _0x29fa31=a113_0x4c7776,_0x7a7c27=loadInstantApiPolicyLocalConfig(_0x292905[_0x29fa31(0x179)]),_0x5f26e8=await readInstantApiPolicyConfigFile(_0x7a7c27);return{'local':_0x7a7c27,'config':_0x5f26e8};}export function projectCurrentPolicy(_0xf826cc){const _0x55156a=a113_0x4c7776;if(!_0xf826cc)return null;return{'id':_0xf826cc['id'],'appCode':_0xf826cc[_0x55156a(0x179)],'revision':_0xf826cc['revision'],'configHash':_0xf826cc[_0x55156a(0x152)],'enabled':_0xf826cc[_0x55156a(0x161)],'config':_0xf826cc[_0x55156a(0x177)],'createUserId':_0xf826cc[_0x55156a(0x17b)]??null,'updateUserId':_0xf826cc[_0x55156a(0x17c)]??null,'gmtCreate':_0xf826cc['gmtCreate']??null,'gmtModified':_0xf826cc['gmtModified']??null};}export function projectRevisionSummary(_0x26cc3c){const _0x4701c8=a113_0x4c7776;return{'id':_0x26cc3c['id'],'policyId':_0x26cc3c[_0x4701c8(0x16e)],'appCode':_0x26cc3c[_0x4701c8(0x179)],'revision':_0x26cc3c[_0x4701c8(0x163)],'configHash':_0x26cc3c[_0x4701c8(0x152)],'changeType':_0x26cc3c[_0x4701c8(0x155)],'changeSummary':_0x26cc3c[_0x4701c8(0x15d)]??null,'operatorId':_0x26cc3c[_0x4701c8(0x176)]??null,'gmtCreate':_0x26cc3c[_0x4701c8(0x15a)]??null,'version':_0x26cc3c[_0x4701c8(0x177)][_0x4701c8(0x167)],'defaultAction':_0x26cc3c[_0x4701c8(0x177)]['defaults']['instantApi'],'ruleCount':_0x26cc3c[_0x4701c8(0x177)][_0x4701c8(0x156)]?.[_0x4701c8(0x153)]??0x0};}export function projectRevisionDetail(_0x3df68b){const _0xe52e2d=a113_0x4c7776;return{...projectRevisionSummary(_0x3df68b),'config':_0x3df68b[_0xe52e2d(0x177)]};}export function expectedRevisionWarnings(_0x442eec){return _0x442eec===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x135676=a113_0x4c7776;return _0x135676(0x15c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a114_0x58143a=a114_0x4e2f;(function(_0x54d71a,_0x1943d3){const _0x44d8a4=a114_0x4e2f,_0x30e39c=_0x54d71a();while(!![]){try{const _0x344d42=-parseInt(_0x44d8a4(0x1bf))/0x1+parseInt(_0x44d8a4(0x1c7))/0x2+parseInt(_0x44d8a4(0x1c2))/0x3+-parseInt(_0x44d8a4(0x1ca))/0x4*(parseInt(_0x44d8a4(0x1c6))/0x5)+parseInt(_0x44d8a4(0x1be))/0x6+parseInt(_0x44d8a4(0x1cd))/0x7*(parseInt(_0x44d8a4(0x1cb))/0x8)+-parseInt(_0x44d8a4(0x1c4))/0x9;if(_0x344d42===_0x1943d3)break;else _0x30e39c['push'](_0x30e39c['shift']());}catch(_0x5da30f){_0x30e39c['push'](_0x30e39c['shift']());}}}(a114_0x2db5,0x6b693));function a114_0x2db5(){const _0x1a8912=['normalizedConfig','4KxQFKA','376mBdQHL','valid','46298YAcEle','configHash','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','2885418ATWODR','325616LIEAvZ','POST','instant-api-policy','1398882YBTBal','validate','7337754xRONCn','Validated\x20Instant\x20API\x20policy\x20for\x20','1466810Otdsaz','1232368FTdqSY','appCode'];a114_0x2db5=function(){return _0x1a8912;};return a114_0x2db5();}function a114_0x4e2f(_0x40e423,_0x2fa96d){_0x40e423=_0x40e423-0x1bc;const _0x2db508=a114_0x2db5();let _0x4e2f86=_0x2db508[_0x40e423];return _0x4e2f86;}import{validateInstantApiPolicy}from'../../core/api-client.js';import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':a114_0x58143a(0x1c1),'command':a114_0x58143a(0x1c3),'description':a114_0x58143a(0x1bd),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x33c4b6){const _0x5a78ec=a114_0x58143a,{local:_0x149052,config:_0x1dbbec}=await readFixedPolicy(_0x33c4b6),_0x2a09a7=await validateInstantApiPolicy({'appCode':_0x33c4b6['appCode'],'config':_0x1dbbec});return{'ok':!![],'data':{'operation':_0x5a78ec(0x1c3),'selector':{'appCode':_0x33c4b6[_0x5a78ec(0x1c8)]},'filePath':_0x149052['policyFilePath'],'relativePath':_0x149052['policyRelativePath'],'valid':_0x2a09a7[_0x5a78ec(0x1cc)],'configHash':_0x2a09a7[_0x5a78ec(0x1bc)],'normalizedConfig':_0x2a09a7[_0x5a78ec(0x1c9)],'backend':{'method':_0x5a78ec(0x1c0),'path':INSTANT_API_POLICY_BASE_PATH+'/validate'}},'message':_0x5a78ec(0x1c5)+_0x33c4b6['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x288d5e,_0x15a976){const _0xcedcc8=a115_0x2608,_0x23ab7c=_0x288d5e();while(!![]){try{const _0x14de51=-parseInt(_0xcedcc8(0xc5))/0x1*(parseInt(_0xcedcc8(0xcc))/0x2)+-parseInt(_0xcedcc8(0xc9))/0x3+-parseInt(_0xcedcc8(0xc8))/0x4*(-parseInt(_0xcedcc8(0xc3))/0x5)+-parseInt(_0xcedcc8(0xcd))/0x6+parseInt(_0xcedcc8(0xc4))/0x7*(parseInt(_0xcedcc8(0xcb))/0x8)+-parseInt(_0xcedcc8(0xc6))/0x9*(parseInt(_0xcedcc8(0xca))/0xa)+parseInt(_0xcedcc8(0xc7))/0xb;if(_0x14de51===_0x15a976)break;else _0x23ab7c['push'](_0x23ab7c['shift']());}catch(_0x161149){_0x23ab7c['push'](_0x23ab7c['shift']());}}}(a115_0xa22b,0x5f330));function a115_0x2608(_0x17c6f1,_0x42bf2f){_0x17c6f1=_0x17c6f1-0xc3;const _0xa22ba2=a115_0xa22b();let _0x2608dc=_0xa22ba2[_0x17c6f1];return _0x2608dc;}import{issueReport}from'../../commands/issue/report.js';function a115_0xa22b(){const _0x34f908=['970UyQIPd','7MxWwNo','572215lyDsiN','1495242qRgZIz','13559271jZHqaa','548xnnasm','1918479rGimGR','10OxaVEb','4544024ybHzsK','2ZtfsCZ','356760dLqqbR'];a115_0xa22b=function(){return _0x34f908;};return a115_0xa22b();}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x2c0cea=a116_0x527c;(function(_0x576539,_0x3f72dc){const _0x5371d9=a116_0x527c,_0x56daa8=_0x576539();while(!![]){try{const _0x40a379=-parseInt(_0x5371d9(0x147))/0x1+parseInt(_0x5371d9(0x140))/0x2+-parseInt(_0x5371d9(0x138))/0x3+-parseInt(_0x5371d9(0x148))/0x4*(-parseInt(_0x5371d9(0x143))/0x5)+-parseInt(_0x5371d9(0x153))/0x6*(parseInt(_0x5371d9(0x13a))/0x7)+parseInt(_0x5371d9(0x155))/0x8+parseInt(_0x5371d9(0x146))/0x9;if(_0x40a379===_0x3f72dc)break;else _0x56daa8['push'](_0x56daa8['shift']());}catch(_0x42e6c8){_0x56daa8['push'](_0x56daa8['shift']());}}}(a116_0x5b06,0x35f12));function a116_0x527c(_0x42b43c,_0x1c07df){_0x42b43c=_0x42b43c-0x136;const _0x5b066d=a116_0x5b06();let _0x527c41=_0x5b066d[_0x42b43c];return _0x527c41;}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';const NUDGE_SUPPRESSED_CODES=new Set([a116_0x2c0cea(0x157),a116_0x2c0cea(0x139),'config_missing','not_in_project',a116_0x2c0cea(0x13e),a116_0x2c0cea(0x13f),a116_0x2c0cea(0x152),a116_0x2c0cea(0x14d)]),defaultWriter=_0x24eb79=>{const _0x11b77f=a116_0x2c0cea;process[_0x11b77f(0x150)][_0x11b77f(0x156)](_0x24eb79);};export function shouldNudgeForError(_0x209db0,_0x395656){const _0x369d42=a116_0x2c0cea;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x395656[_0x369d42(0x13c)]==='issue'&&_0x395656[_0x369d42(0x14e)]===_0x369d42(0x136))return![];if(_0x209db0 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x369d42(0x13b)](_0x209db0[_0x369d42(0x14f)]);return!![];}function a116_0x5b06(){const _0x5d1d92=['\x20\x20Set\x20','1561352eYqYbc','write','cancelled','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','report','join','565584dWLpHz','auth_required','21CdyUeN','has','service','=1\x20to\x20silence\x20this\x20hint.','unknown_command','flag_missing','141162lTwxDc','\x22\x20\x5c','Hit\x20a\x20','120KOBUap','message','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','2100294BDlCUV','339476dNjpSk','52616TekUjJ','\x20issue\x20report\x20\x5c','slice','length','replace','network_error','command','code','stderr','trim','validation_error','131724UhoaWc'];a116_0x5b06=function(){return _0x5d1d92;};return a116_0x5b06();}export function printIssueReportNudgeForError(_0x3be5f6,_0x3948e,_0x4ea738=defaultWriter){if(!shouldNudgeForError(_0x3be5f6,_0x3948e))return;const _0x105ecc=buildSuggestedTitle(_0x3be5f6,_0x3948e);_0x4ea738(formatNudge(_0x105ecc));}function buildSuggestedTitle(_0x178fd3,_0x4183ca){const _0x4920b0=a116_0x2c0cea,_0x459e03=_0x178fd3 instanceof Error?_0x178fd3[_0x4920b0(0x144)]:String(_0x178fd3),_0x2958ee=_0x459e03[_0x4920b0(0x14c)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x4920b0(0x151)]()[_0x4920b0(0x14a)](0x0,0x78)[_0x4920b0(0x14c)](/"/g,'\x5c\x22'),_0x5372cf=CLI_BIN_NAME+'\x20'+_0x4183ca[_0x4920b0(0x13c)]+'\x20'+_0x4183ca[_0x4920b0(0x14e)];return _0x2958ee[_0x4920b0(0x14b)]>0x0?_0x5372cf+':\x20'+_0x2958ee:_0x5372cf;}function formatNudge(_0x49a69b){const _0x53ef1a=a116_0x2c0cea;return['',_0x53ef1a(0x142)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x53ef1a(0x149),'\x20\x20\x20\x20--title\x20\x22'+_0x49a69b+_0x53ef1a(0x141),_0x53ef1a(0x145),_0x53ef1a(0x158),_0x53ef1a(0x154)+NUDGE_OPT_OUT_ENV+_0x53ef1a(0x13d),''][_0x53ef1a(0x137)]('\x0a');}
|