@lovrabet/rabetbase-cli 2.5.2 → 2.5.3-beta.1
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.d.ts +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.d.ts +2 -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/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/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/region-config.d.ts +23 -0
- package/lib/config/region-config.js +1 -0
- package/lib/config/schema.d.ts +15 -0
- 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.d.ts +6 -0
- 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.d.ts +13 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +2 -0
- 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/page/lr-smart-jsx.d.ts +6 -0
- package/lib/core/page/lr-smart-jsx.js +1 -0
- 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/types/index.d.ts +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.d.ts +2 -8
- 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.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.d.ts +2 -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 +6 -5
- package/skills/rabetbase/guides/page-development-workflow.md +3 -0
- package/skills/rabetbase/guides/sdk-client-generation.md +5 -5
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
- package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
- package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
- package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-pull.md +2 -0
- package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
- package/skills/rabetbase/references/rabetbase-config.md +10 -9
- package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
- package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
- package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/generate-api/client.ts.tpl +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x54ed9c=a98_0x17bf;(function(_0x4c8d06,_0x1175dd){const _0x4bae8f=a98_0x17bf,_0x13aa1d=_0x4c8d06();while(!![]){try{const _0x1982b7=-parseInt(_0x4bae8f(0x13b))/0x1+parseInt(_0x4bae8f(0x146))/0x2*(parseInt(_0x4bae8f(0x13c))/0x3)+parseInt(_0x4bae8f(0x134))/0x4*(parseInt(_0x4bae8f(0x12d))/0x5)+-parseInt(_0x4bae8f(0x140))/0x6+-parseInt(_0x4bae8f(0x141))/0x7*(-parseInt(_0x4bae8f(0x139))/0x8)+parseInt(_0x4bae8f(0x13a))/0x9+parseInt(_0x4bae8f(0x12b))/0xa*(-parseInt(_0x4bae8f(0x13e))/0xb);if(_0x1982b7===_0x1175dd)break;else _0x13aa1d['push'](_0x13aa1d['shift']());}catch(_0x1e8d93){_0x13aa1d['push'](_0x13aa1d['shift']());}}}(a98_0x588b,0x91945));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a98_0x588b(){const _0x487271=['POST','status','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','sync-all','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','jobId','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','/smartapi/data-sync/submit','job','929510pozGsp','not_needed','29790Ayhnsb','Submitted\x20deployment\x20synchronization\x20job\x20','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','data','bool','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','submitted','348PtVVkt','unknown','confirm','validation','all_server_supported_metadata','14344DGEFwK','8142345cFRABo','620073KEwcbN','1602633VfVMVm','write','11QwlhQT','not_submitted','5114082IpzEbc','798PQkotK','appCode','application_deployment_sync','deployment','defineProperty','2TXxehT','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata'];a98_0x588b=function(){return _0x487271;};return a98_0x588b();}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a98_0x54ed9c(0x129),CONFIRM_FLAG={'name':a98_0x54ed9c(0x136),'type':'boolean','description':a98_0x54ed9c(0x125)};function a98_0x17bf(_0x223bbd,_0x5d59a4){_0x223bbd=_0x223bbd-0x125;const _0x588b34=a98_0x588b();let _0x17bfa9=_0x588b34[_0x223bbd];return _0x17bfa9;}export const deploymentSyncAll={'service':a98_0x54ed9c(0x144),'command':a98_0x54ed9c(0x14c),'description':a98_0x54ed9c(0x147),'risk':a98_0x54ed9c(0x13d),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a98_0x54ed9c(0x128),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x5bd9ec){const _0x35a2a7=a98_0x54ed9c;return asDryRunResult(buildPreview(_0x5bd9ec[_0x35a2a7(0x142)]),{'method':_0x35a2a7(0x148),'url':SUBMIT_PATH,'description':_0x35a2a7(0x14a)});},async 'execute'(_0x35aea2){const _0x11c281=a98_0x54ed9c;if(!_0x35aea2[_0x11c281(0x131)](_0x11c281(0x136)))throw CliErrors[_0x11c281(0x137)](_0x11c281(0x14b),_0x11c281(0x12f));try{const _0x550c29=await submitDeploymentMetadataSyncAll({'appCode':_0x35aea2['appCode']});if(_0x550c29['outcome']===_0x11c281(0x12c))return{'ok':!![],'data':{'operation':_0x11c281(0x143),'appCode':_0x35aea2[_0x11c281(0x142)],'submitted':![],'outcome':'not_needed'},'message':_0x11c281(0x126)};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x35aea2[_0x11c281(0x142)],'submitted':!![],'outcome':_0x11c281(0x133),'jobId':_0x550c29['job']['jobId'],'status':_0x550c29['job'][_0x11c281(0x149)]},'message':_0x11c281(0x12e)+_0x550c29[_0x11c281(0x12a)][_0x11c281(0x127)]+'.'};}catch(_0x764d89){if(!isPlatformTransportFailure(_0x764d89))throw _0x764d89;const _0x799393=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x11c281(0x132),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x11c281(0x145)](_0x799393,_0x11c281(0x130),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x35aea2['appCode'],'submitted':null,'outcome':_0x11c281(0x135)}});throw _0x799393;}}};function buildPreview(_0x307f9b){const _0xc8374c=a98_0x54ed9c;return{'operation':'application_deployment_sync','selector':{'appCode':_0x307f9b,'scope':_0xc8374c(0x138)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0xc8374c(0x13f)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a99_0x39d0(_0x133ffb,_0x2127b9){_0x133ffb=_0x133ffb-0xf5;const _0x364deb=a99_0x364d();let _0x39d049=_0x364deb[_0x133ffb];return _0x39d049;}const a99_0x374ff3=a99_0x39d0;(function(_0x49ca1b,_0x187e03){const _0x2cde79=a99_0x39d0,_0x7c8acc=_0x49ca1b();while(!![]){try{const _0x1e52c1=parseInt(_0x2cde79(0xfd))/0x1*(parseInt(_0x2cde79(0x106))/0x2)+parseInt(_0x2cde79(0xf7))/0x3*(-parseInt(_0x2cde79(0xf6))/0x4)+-parseInt(_0x2cde79(0x108))/0x5*(-parseInt(_0x2cde79(0x100))/0x6)+parseInt(_0x2cde79(0xff))/0x7+-parseInt(_0x2cde79(0x107))/0x8+parseInt(_0x2cde79(0x101))/0x9+parseInt(_0x2cde79(0x105))/0xa;if(_0x1e52c1===_0x187e03)break;else _0x7c8acc['push'](_0x7c8acc['shift']());}catch(_0x187bb6){_0x7c8acc['push'](_0x7c8acc['shift']());}}}(a99_0x364d,0xed757));function a99_0x364d(){const _0x246352=['length','status','number','validation','current-page','appCode','num','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','Found\x20','deployment','4076imZpGE','4464DygReV','--current-page\x20must\x20be\x20a\x20positive\x20integer.','List\x20application\x20deployment\x20synchronization\x20jobs','items','Items\x20per\x20page\x20(maximum\x20100)','page-size','81159GEmkrv','read','3937003KEEJYO','12OfDDJx','2941668TxzCOo','isSafeInteger','\x20deployment\x20synchronization\x20job(s).','Optional\x20server-defined\x20job\x20status\x20filter','3024190hdNJiU','24GyHvjg','12905976jZVjnj','4841355AawWMM','string'];a99_0x364d=function(){return _0x246352;};return a99_0x364d();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a99_0x374ff3(0xf5),'command':'sync-jobs','description':a99_0x374ff3(0xf9),'risk':a99_0x374ff3(0xfe),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':'number','default':0x1,'description':'Page\x20number'},{'name':a99_0x374ff3(0xfc),'type':a99_0x374ff3(0x10c),'default':0xa,'description':a99_0x374ff3(0xfb)},{'name':a99_0x374ff3(0x10b),'type':a99_0x374ff3(0x109),'description':a99_0x374ff3(0x104)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3fff94){const _0x22bbd1=a99_0x374ff3;readPaging(_0x3fff94[_0x22bbd1(0x110)](_0x22bbd1(0x10e),0x1),_0x3fff94[_0x22bbd1(0x110)](_0x22bbd1(0xfc),0xa));},async 'execute'(_0x5a25d9){const _0xc7565c=a99_0x374ff3,{currentPage:_0x41b169,pageSize:_0xfb8e60}=readPaging(_0x5a25d9['num'](_0xc7565c(0x10e),0x1),_0x5a25d9[_0xc7565c(0x110)](_0xc7565c(0xfc),0xa)),_0xf90c48=_0x5a25d9['str'](_0xc7565c(0x10b))['trim'](),_0x1c4f44=await listDeploymentMetadataSyncJobs({'appCode':_0x5a25d9['appCode'],'currentPage':_0x41b169,'pageSize':_0xfb8e60,..._0xf90c48?{'status':_0xf90c48}:{}});return{'ok':!![],'data':{'appCode':_0x5a25d9[_0xc7565c(0x10f)],..._0x1c4f44},'message':_0xc7565c(0x112)+_0x1c4f44[_0xc7565c(0xfa)][_0xc7565c(0x10a)]+_0xc7565c(0x103)};}};function readPaging(_0x47d49,_0x32cda4){const _0x93d27=a99_0x374ff3;if(!Number[_0x93d27(0x102)](_0x47d49)||_0x47d49<0x1)throw CliErrors[_0x93d27(0x10d)](_0x93d27(0xf8));if(!Number[_0x93d27(0x102)](_0x32cda4)||_0x32cda4<0x1||_0x32cda4>0x64)throw CliErrors[_0x93d27(0x10d)](_0x93d27(0x111));return{'currentPage':_0x47d49,'pageSize':_0x32cda4};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a100_0x12c08c=a100_0x2b8b;function a100_0x4789(){const _0x547709=['6073580knFtwR','64060IHTLEa','isSafeInteger','634074vXdwwg','Get\x20application\x20deployment\x20synchronization\x20job\x20status',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','Deployment\x20synchronization\x20job\x20ID','20351969JEkzHO','664QZiHtn','validation','action','87ovDHWi','number','30GmFCTL','145TIWLKe','results','job-id','appCode','deployment','has','12RqsLXh','length','RUNNING','status','filter','PARTIAL_SUCCESS','FAILED','Deployment\x20synchronization\x20job\x20','SUCCESS','13238klWJfF','Preserved\x20server-defined\x20status\x20','791CjWizo','num','map','PENDING','read','73404UDIieb'];a100_0x4789=function(){return _0x547709;};return a100_0x4789();}(function(_0x417343,_0x365fe9){const _0x4bf44b=a100_0x2b8b,_0x51176d=_0x417343();while(!![]){try{const _0x449ecf=parseInt(_0x4bf44b(0x9b))/0x1+parseInt(_0x4bf44b(0x90))/0x2*(-parseInt(_0x4bf44b(0xa3))/0x3)+-parseInt(_0x4bf44b(0x99))/0x4*(-parseInt(_0x4bf44b(0xa6))/0x5)+-parseInt(_0x4bf44b(0xa5))/0x6*(parseInt(_0x4bf44b(0x92))/0x7)+-parseInt(_0x4bf44b(0xa0))/0x8*(-parseInt(_0x4bf44b(0x97))/0x9)+parseInt(_0x4bf44b(0x98))/0xa+parseInt(_0x4bf44b(0x9f))/0xb*(-parseInt(_0x4bf44b(0xac))/0xc);if(_0x449ecf===_0x365fe9)break;else _0x51176d['push'](_0x51176d['shift']());}catch(_0x40ad99){_0x51176d['push'](_0x51176d['shift']());}}}(a100_0x4789,0x53098));function a100_0x2b8b(_0x2c1519,_0x49af9c){_0x2c1519=_0x2c1519-0x8e;const _0x4789a9=a100_0x4789();let _0x2b8b84=_0x4789a9[_0x2c1519];return _0x2b8b84;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a100_0x12c08c(0x8f),a100_0x12c08c(0xb1),'FAILED']),ACTIVE_STATUSES=new Set([a100_0x12c08c(0x95),a100_0x12c08c(0xae)]);export const deploymentSyncStatus={'service':a100_0x12c08c(0xaa),'command':'sync-status','description':a100_0x12c08c(0x9c),'risk':a100_0x12c08c(0x96),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a100_0x12c08c(0xa8),'type':a100_0x12c08c(0xa4),'required':!![],'description':a100_0x12c08c(0x9e)}],async 'validate'(_0x497c2b){const _0x359043=a100_0x12c08c;readJobId(_0x497c2b[_0x359043(0x93)]('job-id'));},async 'execute'(_0x31a2ec){const _0x3010f1=a100_0x12c08c,_0x2d1bb2=readJobId(_0x31a2ec[_0x3010f1(0x93)](_0x3010f1(0xa8))),_0x11d775=await getDeploymentMetadataSyncStatus({'jobId':_0x2d1bb2,'appCode':_0x31a2ec[_0x3010f1(0xa9)]}),_0xcea99f=TERMINAL_STATUSES[_0x3010f1(0xab)](_0x11d775[_0x3010f1(0xaf)])?!![]:ACTIVE_STATUSES[_0x3010f1(0xab)](_0x11d775[_0x3010f1(0xaf)])?![]:null,_0x2b7f98=countBy(_0x11d775['results'][_0x3010f1(0x94)](_0x170d41=>_0x170d41['bizType'])),_0x3337f5=countBy(_0x11d775[_0x3010f1(0xa7)]['map'](_0x3b6f69=>_0x3b6f69[_0x3010f1(0xa2)])),_0x3f2d7a=_0xcea99f===null?[_0x3010f1(0x91)+_0x11d775[_0x3010f1(0xaf)]+_0x3010f1(0x9d)]:[];return{'ok':!![],'data':{'job':_0x11d775,'isTerminal':_0xcea99f,'summary':{'total':_0x11d775[_0x3010f1(0xa7)][_0x3010f1(0xad)],'failed':_0x11d775[_0x3010f1(0xa7)][_0x3010f1(0xb0)](_0x263177=>_0x263177[_0x3010f1(0xa2)]===_0x3010f1(0xb2))['length'],'byBizType':_0x2b7f98,'byAction':_0x3337f5},'warnings':_0x3f2d7a},'message':_0x3010f1(0x8e)+_0x2d1bb2+'\x20is\x20'+_0x11d775[_0x3010f1(0xaf)]+'.'};}};function readJobId(_0x5d3386){const _0x1e7593=a100_0x12c08c;if(!Number[_0x1e7593(0x9a)](_0x5d3386)||_0x5d3386<=0x0)throw CliErrors[_0x1e7593(0xa1)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x5d3386;}function countBy(_0x217c02){return _0x217c02['reduce']((_0x5b3207,_0x18cb69)=>{return _0x5b3207[_0x18cb69]=(_0x5b3207[_0x18cb69]??0x0)+0x1,_0x5b3207;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101_0xbd7762=a101_0x2e51;(function(_0x59e703,_0x3c407d){const _0x102ebf=a101_0x2e51,_0x119112=_0x59e703();while(!![]){try{const _0x2baae2=-parseInt(_0x102ebf(0xd7))/0x1+-parseInt(_0x102ebf(0xd2))/0x2*(-parseInt(_0x102ebf(0xde))/0x3)+parseInt(_0x102ebf(0xfb))/0x4+-parseInt(_0x102ebf(0xe5))/0x5+parseInt(_0x102ebf(0x13b))/0x6+-parseInt(_0x102ebf(0x144))/0x7+-parseInt(_0x102ebf(0xff))/0x8*(-parseInt(_0x102ebf(0x133))/0x9);if(_0x2baae2===_0x3c407d)break;else _0x119112['push'](_0x119112['shift']());}catch(_0x3ecd96){_0x119112['push'](_0x119112['shift']());}}}(a101_0x2230,0x7a8d2));import a101_0x30fbc7 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';function a101_0x2230(){const _0x262126=['\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','projectConfig','\x20\x20Config\x20Files','accessKey','464DTMKDj','Project','region','verbose','cookie','525001MNKlHV','length','(not\x20set)','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20─','yellow','green','2457WftCoI','call','red','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config','\x20\x20API\x20Endpoints','locale','3309955EFYfLH','✓\x20Valid','\x20config\x20delete\x20routing','check','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','apiDir','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','raw','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','arch','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','global','project','\x20config\x20delete\x20region\x20--global','apps','skillVersion','reason','source','state','3638132lZAzfZ','\x20\x20Apps','value','(unknown)','40zAFqmp','env','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','toLowerCase','\x20+\x20','gray','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','Global','\x20\x20Repair\x20project:\x20\x20','format','present','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','installedPath','repeat','(set,\x20length=','join','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','Repair\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','routing','repairCommand','\x20\x20Country/Region\x20Configuration','null','stringify','bold','\x20config\x20delete\x20inherit\x20--global','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','message','\x20config\x20delete\x20routing\x20--global','platform','\x20\x20Built-in\x20Skill','hasOwnProperty','currentApp','\x20\x20Merged\x20Config','(not\x20found)','unknown','\x20\x20Repair\x20project:\x20\x20\x20','globalConfig','status','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Repair\x20global:\x20\x20\x20','✗\x20Invalid\x20','1757484oNBNmr','explicitAppName','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','prototype','label','1530126CfEIsU','log','inherit','\x20\x20Installed\x20Path:\x20\x20','ignored\x20in\x20','appCode','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','keys','\x20\x20explicitAppName:\x20','4493860HpeKFo','✗\x20Expired','✓\x20Valid\x20JSON','read','\x20←\x20current','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','padEnd'];a101_0x2230=function(){return _0x262126;};return a101_0x2230();}import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x59058a){const _0x49f022=a101_0x2e51;return typeof _0x59058a==='string'?JSON[_0x49f022(0x11d)](_0x59058a):'<'+(_0x59058a===null?_0x49f022(0x11c):typeof _0x59058a)+'>';}function a101_0x2e51(_0x400cba,_0x173b87){_0x400cba=_0x400cba-0xcc;const _0x223069=a101_0x2230();let _0x2e511e=_0x223069[_0x400cba];return _0x2e511e;}async function execute(_0x2539e8){const _0x1deb24=a101_0x2e51,_0x2cf2a0=GIT_COMMIT!==_0x1deb24(0x12c)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x1d7d8b=buildConfigFromFlags({}),_0xfaca2f=getCookie();let _0x43ff59;try{await initGlobalEnvironment(_0x1d7d8b);}catch(_0x272807){_0x43ff59=_0x272807 instanceof Error?_0x272807:new Error(String(_0x272807));}console['log'](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)](CLI_BIN_NAME+'\x20doctor')),console[_0x1deb24(0x13c)](a101_0x30fbc7['gray']('─'[_0x1deb24(0x10e)](0x32))),console[_0x1deb24(0x13c)](_0x1deb24(0xf2)+_0x2cf2a0),console[_0x1deb24(0x13c)](_0x1deb24(0x10b)+process['version']),console[_0x1deb24(0x13c)](_0x1deb24(0x137)+process[_0x1deb24(0x126)]+'\x20'+process[_0x1deb24(0xf1)]);const _0x2b93fe=inspectBuiltinSkill();console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x127))),console[_0x1deb24(0x13c)](a101_0x30fbc7['gray'](_0x1deb24(0xdb)[_0x1deb24(0x10e)](0x1e)));const _0x37de43=_0x2b93fe[_0x1deb24(0xfa)]===_0x1deb24(0xea)?a101_0x30fbc7[_0x1deb24(0xdd)]('✓\x20'+_0x2b93fe['state']):a101_0x30fbc7[_0x1deb24(0xe0)]('✗\x20'+_0x2b93fe[_0x1deb24(0xfa)]);console[_0x1deb24(0x13c)](_0x1deb24(0xcd)+_0x37de43),console[_0x1deb24(0x13c)](_0x1deb24(0xed)+_0x2b93fe[_0x1deb24(0x10c)]),console[_0x1deb24(0x13c)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x2b93fe[_0x1deb24(0xf7)]||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xfe)))),console[_0x1deb24(0x13c)](_0x1deb24(0x13e)+(_0x2b93fe[_0x1deb24(0x10d)]||a101_0x30fbc7[_0x1deb24(0x104)]('(not\x20found)')));if(_0x2b93fe[_0x1deb24(0xf8)])console['log'](_0x1deb24(0x101)+_0x2b93fe[_0x1deb24(0xf8)]);_0x2b93fe[_0x1deb24(0xfa)]!=='current'&&console['log'](_0x1deb24(0x14c)+_0x2b93fe['repairCommand']);console['log'](),console[_0x1deb24(0x13c)](a101_0x30fbc7['bold'](_0x1deb24(0xd0))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)]('\x20\x20─'[_0x1deb24(0x10e)](0x1e)));const _0x2e3c9f=getGlobalConfigPath(),_0x366469=getProjectConfigPath();console[_0x1deb24(0x13c)](_0x1deb24(0xef)+(_0x2e3c9f||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x12b)))),console[_0x1deb24(0x13c)](_0x1deb24(0xe9)+(_0x366469||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x12b)))),console[_0x1deb24(0x13c)](),console['log'](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x123))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e)));const _0x55ac4d=(_0x231ebf,_0x48cc66)=>{const _0x390356=_0x1deb24;if(!_0x48cc66){console['log']('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0x104)]('(no\x20file)'));return;}const _0xba03e3=inspectCliConfigJsonFile(_0x48cc66);if(_0xba03e3[_0x390356(0x12f)]==='ok')console[_0x390356(0x13c)]('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0xdd)](_0x390356(0x146)));else{if(_0xba03e3[_0x390356(0x12f)]==='empty')console[_0x390356(0x13c)]('\x20\x20'+_0x231ebf['padEnd'](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0xdc)](_0x390356(0x118)));else _0xba03e3[_0x390356(0x12f)]===_0x390356(0x136)?console['log']('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0x104)](_0x390356(0xf0))):(console[_0x390356(0x13c)]('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7['red'](_0x390356(0x121))),console[_0x390356(0x13c)]('\x20\x20'+''[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0xe0)](_0xba03e3[_0x390356(0x124)])));}};_0x55ac4d(_0x1deb24(0x107),_0x2e3c9f),_0x55ac4d(_0x1deb24(0xd3),_0x366469);const _0xf3540d=loadRawConfigLayers(),_0x2f3ed7=[{'label':'Project','value':_0xf3540d[_0x1deb24(0xcf)][_0x1deb24(0xd4)],'present':Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0xcf)],'region'),'repairCommand':CLI_BIN_NAME+_0x1deb24(0x14a)},{'label':'Global','value':_0xf3540d[_0x1deb24(0x12e)][_0x1deb24(0xd4)],'present':Object[_0x1deb24(0x139)][_0x1deb24(0x128)]['call'](_0xf3540d['globalConfig'],_0x1deb24(0xd4)),'repairCommand':CLI_BIN_NAME+_0x1deb24(0xf5)}]['filter'](_0x55dd26=>_0x55dd26[_0x1deb24(0x10a)]&&isInvalidLovrabetRegion(_0x55dd26[_0x1deb24(0xfd)]));if(_0x2f3ed7[_0x1deb24(0xd8)]>0x0){console['log'](),console['log'](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x11b))),console[_0x1deb24(0x13c)](a101_0x30fbc7['gray'](_0x1deb24(0xdb)[_0x1deb24(0x10e)](0x1e)));for(const _0x1c4da1 of _0x2f3ed7){console['log']('\x20\x20'+_0x1c4da1[_0x1deb24(0x13a)][_0x1deb24(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0x132)+describeRegionValue(_0x1c4da1[_0x1deb24(0xfd)]))),console['log']('\x20\x20'+(_0x1deb24(0x116)+_0x1c4da1[_0x1deb24(0x13a)][_0x1deb24(0x102)]()+':')[_0x1deb24(0x14b)](0x10)+'\x20'+_0x1c4da1[_0x1deb24(0x11a)]);}}const _0x4da9e0=[Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0x12e)],_0x1deb24(0x13d))?'global':null,Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0xcf)],'inherit')?_0x1deb24(0xf4):null]['filter'](Boolean);_0x4da9e0[_0x1deb24(0xd8)]>0x0&&(console[_0x1deb24(0x13c)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a101_0x30fbc7[_0x1deb24(0xdc)](_0x1deb24(0x13f)+_0x4da9e0[_0x1deb24(0x110)](_0x1deb24(0x103))+_0x1deb24(0xe2))),_0x4da9e0['includes'](_0x1deb24(0xf4))&&console[_0x1deb24(0x13c)](_0x1deb24(0x12d)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x4da9e0['includes'](_0x1deb24(0xf3))&&console['log'](_0x1deb24(0x105)+CLI_BIN_NAME+_0x1deb24(0x11f)));const _0x22a5a1=isInvalidLovrabetRegion(_0x1d7d8b[_0x1deb24(0xee)]?.[_0x1deb24(0xd4)]);_0x43ff59&&!_0x22a5a1&&(console['log'](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)]('\x20\x20Routing\x20Configuration')),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)[_0x1deb24(0x10e)](0x1e))),console[_0x1deb24(0x13c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x30fbc7['red']('✗\x20Invalid')),console[_0x1deb24(0x13c)](_0x1deb24(0x101)+_0x43ff59[_0x1deb24(0x124)]),Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0xcf)],_0x1deb24(0x119))&&console[_0x1deb24(0x13c)](_0x1deb24(0x108)+CLI_BIN_NAME+_0x1deb24(0xe7)),Object['prototype']['hasOwnProperty'][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0x12e)],_0x1deb24(0x119))&&console[_0x1deb24(0x13c)](_0x1deb24(0x131)+CLI_BIN_NAME+_0x1deb24(0x125)));console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x12a))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e))),console[_0x1deb24(0x13c)](_0x1deb24(0x122)+(_0x1d7d8b[_0x1deb24(0x140)]||a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0xd9)))),console['log'](_0x1deb24(0xe1)+_0x1d7d8b[_0x1deb24(0x100)]),console[_0x1deb24(0x13c)](_0x1deb24(0xda)+_0x1d7d8b[_0x1deb24(0xe4)]),console[_0x1deb24(0x13c)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1d7d8b['apiDir']),console[_0x1deb24(0x13c)](_0x1deb24(0x141)+(_0x1d7d8b['defaultApp']||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x113)))),console[_0x1deb24(0x13c)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x1d7d8b['currentApp']||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x113)))),console[_0x1deb24(0x13c)](_0x1deb24(0x143)+(_0x1d7d8b[_0x1deb24(0x134)]||a101_0x30fbc7['gray'](_0x1deb24(0x113)))),console['log'](_0x1deb24(0x149)+(_0x1d7d8b['format']||a101_0x30fbc7[_0x1deb24(0x104)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x1deb24(0x109)]+')'))),console[_0x1deb24(0x13c)](_0x1deb24(0x117)+(_0x1d7d8b['pageSize']??a101_0x30fbc7[_0x1deb24(0x104)]('(default)'))),console[_0x1deb24(0x13c)](_0x1deb24(0x111)+_0x1d7d8b['riskLevel']),console[_0x1deb24(0x13c)](_0x1deb24(0x135)+_0x1d7d8b[_0x1deb24(0xd5)]),console[_0x1deb24(0x13c)](_0x1deb24(0xec)+(_0x1d7d8b[_0x1deb24(0xd6)]?a101_0x30fbc7['green'](_0x1deb24(0x10f)+_0x1d7d8b[_0x1deb24(0xd6)]['length']+')'):_0xfaca2f?a101_0x30fbc7['green']('(set\x20via\x20file,\x20length='+_0xfaca2f[_0x1deb24(0xd8)]+')'):a101_0x30fbc7[_0x1deb24(0x104)]('(none)')));const _0x3fdf87=Object[_0x1deb24(0x142)](_0x1d7d8b['apps']);if(_0x3fdf87[_0x1deb24(0xd8)]>0x0){console[_0x1deb24(0x13c)](),console['log'](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0xfc))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e)));for(const _0x317d1d of _0x3fdf87){const _0x594a52=_0x1d7d8b[_0x1deb24(0xf6)][_0x317d1d],_0x31e9a7=_0x317d1d===_0x1d7d8b['defaultApp'],_0x1701ab=_0x317d1d===_0x1d7d8b[_0x1deb24(0x129)],_0x419287=_0x1701ab?a101_0x30fbc7['green'](_0x1deb24(0x148)):'',_0x3012da=_0x31e9a7?'\x20(default)':'';console[_0x1deb24(0x13c)]('\x20\x20'+_0x317d1d+_0x3012da+_0x419287),console[_0x1deb24(0x13c)](_0x1deb24(0xce)+_0x594a52['appcode']);const _0x4c9f60=buildAppDoctorFields(_0x594a52,{'env':_0x1d7d8b[_0x1deb24(0x100)],'apiDir':_0x1d7d8b[_0x1deb24(0xee)][_0x1deb24(0xeb)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x1d7d8b['cookie']||_0xfaca2f||undefined,'accessKey':_0x1d7d8b['accessKey']});console[_0x1deb24(0x13c)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4c9f60[_0x1deb24(0x100)]['value']+'\x20\x20'+a101_0x30fbc7[_0x1deb24(0x104)]('('+_0x4c9f60['env'][_0x1deb24(0xf9)]+')')),console[_0x1deb24(0x13c)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x4c9f60[_0x1deb24(0xeb)][_0x1deb24(0xfd)]+'\x20\x20'+a101_0x30fbc7[_0x1deb24(0x104)]('('+_0x4c9f60[_0x1deb24(0xeb)][_0x1deb24(0xf9)]+')'));const _0x33e9c7=_0x4c9f60['cookie'][_0x1deb24(0xfd)]?a101_0x30fbc7[_0x1deb24(0xdd)]('(set,\x20length='+_0x4c9f60[_0x1deb24(0xd6)]['value']['length']+')'):a101_0x30fbc7['gray'](_0x1deb24(0x113));console[_0x1deb24(0x13c)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x33e9c7+'\x20\x20'+a101_0x30fbc7[_0x1deb24(0x104)]('('+_0x4c9f60[_0x1deb24(0xd6)][_0x1deb24(0xf9)]+')'));const _0x318d08=_0x4c9f60['accessKey']['value']?a101_0x30fbc7[_0x1deb24(0xdd)](_0x1deb24(0x10f)+_0x4c9f60[_0x1deb24(0xd1)]['value'][_0x1deb24(0xd8)]+')'):a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x113));console[_0x1deb24(0x13c)](_0x1deb24(0x115)+_0x318d08+'\x20\x20'+a101_0x30fbc7['gray']('('+_0x4c9f60[_0x1deb24(0xd1)][_0x1deb24(0xf9)]+')'));}}console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7['bold'](_0x1deb24(0xe3))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e)));_0x43ff59?console['log'](_0x1deb24(0x112)+a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0x130))):(console[_0x1deb24(0x13c)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x1deb24(0x13c)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x1deb24(0x114)+getUserDomain()),console[_0x1deb24(0x13c)](_0x1deb24(0x106)+getRuntimeDomain()),console[_0x1deb24(0x13c)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console['log']('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console['log'](_0x1deb24(0x120)+getAppDomain()));console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7['bold'](_0x1deb24(0x138))),console['log'](a101_0x30fbc7['gray']('\x20\x20─'[_0x1deb24(0x10e)](0x1e)));if(_0x43ff59)console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x30fbc7[_0x1deb24(0xdc)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0xfaca2f){const _0x352454=await getIsSessionValid();console[_0x1deb24(0x13c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x352454?a101_0x30fbc7[_0x1deb24(0xdd)](_0x1deb24(0xe6)):a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0x145))));}else console[_0x1deb24(0x13c)](_0x1deb24(0x112)+a101_0x30fbc7['red'](_0x1deb24(0xcc)));}return console[_0x1deb24(0x13c)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a101_0xbd7762(0xe8),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a101_0xbd7762(0x147),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a101_0x19c08b=a101_0x326c;(function(_0x402426,_0x24ce42){const _0x5e793a=a101_0x326c,_0x1e0b77=_0x402426();while(!![]){try{const _0x8e9197=-parseInt(_0x5e793a(0x19a))/0x1+parseInt(_0x5e793a(0x16a))/0x2+parseInt(_0x5e793a(0x14a))/0x3*(parseInt(_0x5e793a(0x1be))/0x4)+parseInt(_0x5e793a(0x154))/0x5*(-parseInt(_0x5e793a(0x1a4))/0x6)+-parseInt(_0x5e793a(0x1bf))/0x7+parseInt(_0x5e793a(0x1c9))/0x8*(-parseInt(_0x5e793a(0x1c7))/0x9)+parseInt(_0x5e793a(0x1c3))/0xa;if(_0x8e9197===_0x24ce42)break;else _0x1e0b77['push'](_0x1e0b77['shift']());}catch(_0x250c03){_0x1e0b77['push'](_0x1e0b77['shift']());}}}(a101_0xc891,0xe6b9e));import a101_0x3b993b 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{resolveEffectiveRegion}from'../config/region-config.js';function a101_0xc891(){const _0x198c5e=['\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Not\x20logged\x20in','unknown','Global','\x20config\x20delete\x20routing\x20--global','(unknown)','length','\x20(default)','join','\x20\x20Repair\x20global:\x20\x20\x20','1711203AnwrtE','current','log','cookie','label','inherit','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','pageSize','project','13038FCxCwh','✗\x20Invalid\x20','bold','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region\x20--global','(not\x20set)','projectConfig','message','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','filter','entries','Project','\x20+\x20','arch','globalConfig','✓\x20Valid\x20JSON','check','object','routing','\x20\x20Installed\x20Path:\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','skillVersion','push','\x20config\x20delete\x20routing','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','424gACwNW','622069LQyfII','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','11271090LnTnJw','repeat','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','regionConfiguredValue','54gpjxAB','\x20config\x20delete\x20inherit','198200LisvXD','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','state','global','appCode','green','yellow','prototype','\x20\x20API\x20Endpoints','\x20\x20Config\x20JSON','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Repair\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20app\x20\x22','includes','format','keys','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','19080nhkkBw','slice','raw','hasOwnProperty','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','Set\x20apps.','region','gray','1080vASdRu','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20Merged\x20Config','(default:\x20','defaultApp','default','empty','\x20\x20─','accessKey','\x20config\x20delete\x20region','apiDir','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','padEnd','call','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','(missing)','3123746vMhWpN','stringify','ignored\x20in\x20','env','red','\x20←\x20current','✗\x20Invalid','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','explicitAppName','\x20\x20Apps','\x20config','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','null','status','\x20\x20Repair\x20project:\x20\x20\x20','version','.region\x20to\x20cn\x20or\x20id\x20in\x20','string','appcode','present','(set,\x20length=','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','toLowerCase','\x20\x20Legacy\x20inherit:\x20\x20\x20','(not\x20found)','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','doctor','\x20\x20Config\x20Files','\x20\x20Repair\x20project:\x20\x20','apps','\x20(invalid)','currentApp'];a101_0xc891=function(){return _0x198c5e;};return a101_0xc891();}function a101_0x326c(_0x3d5c78,_0x4c429b){_0x3d5c78=_0x3d5c78-0x144;const _0xc891c=a101_0xc891();let _0x326cda=_0xc891c[_0x3d5c78];return _0x326cda;}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x2ac5a7){const _0x436f71=a101_0x326c;return typeof _0x2ac5a7===_0x436f71(0x17e)?JSON[_0x436f71(0x16b)](_0x2ac5a7):'<'+(_0x2ac5a7===null?_0x436f71(0x179):typeof _0x2ac5a7)+'>';}async function execute(_0x5a1bf6){const _0x37776c=a101_0x326c,_0x54b2e2=GIT_COMMIT!==_0x37776c(0x192)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x37776c(0x14b)](0x0,0xa)+')':VERSION,_0x554564=buildConfigFromFlags({}),_0x59438e=getCookie();let _0x4f16df;try{await initGlobalEnvironment(_0x554564);}catch(_0x2631fd){_0x4f16df=_0x2631fd instanceof Error?_0x2631fd:new Error(String(_0x2631fd));}console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)](CLI_BIN_NAME+'\x20doctor')),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)]('─'[_0x37776c(0x1c4)](0x32))),console['log'](_0x37776c(0x178)+_0x54b2e2),console['log'](_0x37776c(0x167)+process[_0x37776c(0x17c)]),console[_0x37776c(0x19c)](_0x37776c(0x162)+process['platform']+'\x20'+process[_0x37776c(0x1b1)]);const _0x3c4a65=inspectBuiltinSkill();console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)]('\x20\x20Built-in\x20Skill')),console[_0x37776c(0x19c)](a101_0x3b993b['gray'](_0x37776c(0x15e)['repeat'](0x1e)));const _0x4b2133=_0x3c4a65['state']===_0x37776c(0x19b)?a101_0x3b993b[_0x37776c(0x1ce)]('✓\x20'+_0x3c4a65[_0x37776c(0x1cb)]):a101_0x3b993b[_0x37776c(0x16e)]('✗\x20'+_0x3c4a65[_0x37776c(0x1cb)]);console[_0x37776c(0x19c)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4b2133),console[_0x37776c(0x19c)]('\x20\x20Package\x20Version:\x20'+_0x3c4a65['packageVersion']),console[_0x37776c(0x19c)](_0x37776c(0x1a1)+(_0x3c4a65[_0x37776c(0x1b9)]||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x195)))),console[_0x37776c(0x19c)](_0x37776c(0x1b7)+(_0x3c4a65[_0x37776c(0x168)]||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x186))));if(_0x3c4a65[_0x37776c(0x183)])console[_0x37776c(0x19c)](_0x37776c(0x1bc)+_0x3c4a65[_0x37776c(0x183)]);_0x3c4a65['state']!==_0x37776c(0x19b)&&console[_0x37776c(0x19c)](_0x37776c(0x173)+_0x3c4a65[_0x37776c(0x164)]);console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b['bold'](_0x37776c(0x18b))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));const _0x55978b=getGlobalConfigPath(),_0x1dd723=getProjectConfigPath();console['log'](_0x37776c(0x157)+(_0x55978b||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x186)))),console[_0x37776c(0x19c)](_0x37776c(0x14f)+(_0x1dd723||a101_0x3b993b[_0x37776c(0x153)]('(not\x20found)'))),console['log'](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x1d2))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)['repeat'](0x1e)));const _0x1b96db=(_0x2edfc9,_0x29532d)=>{const _0x2a86d2=_0x37776c;if(!_0x29532d){console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x153)](_0x2a86d2(0x1d7)));return;}const _0x4d823f=inspectCliConfigJsonFile(_0x29532d);if(_0x4d823f[_0x2a86d2(0x17a)]==='ok')console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x1ce)](_0x2a86d2(0x1b3)));else{if(_0x4d823f[_0x2a86d2(0x17a)]===_0x2a86d2(0x15d))console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x1cf)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4d823f[_0x2a86d2(0x17a)]==='missing'?console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x153)](_0x2a86d2(0x169))):(console['log']('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x16e)]('✗\x20Invalid\x20JSON')),console[_0x2a86d2(0x19c)]('\x20\x20'+''[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b['red'](_0x4d823f[_0x2a86d2(0x1ab)])));}};_0x1b96db(_0x37776c(0x193),_0x55978b),_0x1b96db(_0x37776c(0x1af),_0x1dd723);const _0x314f76=loadRawConfigLayers(),_0x47cc9a=[{'label':'Project','value':_0x314f76[_0x37776c(0x1aa)]['region'],'present':Object['prototype'][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1aa)],_0x37776c(0x152)),'repairCommand':CLI_BIN_NAME+_0x37776c(0x160)},{'label':_0x37776c(0x193),'value':_0x314f76[_0x37776c(0x1b2)]['region'],'present':Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76['globalConfig'],_0x37776c(0x152)),'repairCommand':CLI_BIN_NAME+_0x37776c(0x1a8)}][_0x37776c(0x1ad)](_0x59826f=>_0x59826f[_0x37776c(0x180)]&&isInvalidLovrabetRegion(_0x59826f[_0x37776c(0x187)]));for(const [_0x147567,_0x17117c]of[['Project',_0x314f76[_0x37776c(0x1aa)]],[_0x37776c(0x193),_0x314f76[_0x37776c(0x1b2)]]]){const _0x215436=_0x17117c[_0x37776c(0x18d)]&&typeof _0x17117c[_0x37776c(0x18d)]===_0x37776c(0x1b5)?_0x17117c['apps']:{};for(const [_0x49b2a8,_0x23a9c1]of Object[_0x37776c(0x1ae)](_0x215436)){if(!_0x23a9c1||typeof _0x23a9c1!==_0x37776c(0x1b5)||!Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x23a9c1,'region'))continue;isInvalidLovrabetRegion(_0x23a9c1[_0x37776c(0x152)])&&_0x47cc9a[_0x37776c(0x1ba)]({'label':_0x147567+_0x37776c(0x144)+_0x49b2a8+'\x22','value':_0x23a9c1[_0x37776c(0x152)],'present':!![],'repairCommand':_0x37776c(0x151)+_0x49b2a8+_0x37776c(0x17d)+_0x147567['toLowerCase']()+_0x37776c(0x177)});}}if(_0x47cc9a['length']>0x0){console['log'](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)]('\x20\x20Country/Region\x20Configuration')),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));for(const _0x5b869e of _0x47cc9a){console['log']('\x20\x20'+_0x5b869e['label'][_0x37776c(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x1a5)+describeRegionValue(_0x5b869e[_0x37776c(0x187)]))),console[_0x37776c(0x19c)]('\x20\x20'+(_0x37776c(0x1d4)+_0x5b869e[_0x37776c(0x19e)][_0x37776c(0x184)]()+':')['padEnd'](0x10)+'\x20'+_0x5b869e[_0x37776c(0x164)]);}}const _0x5e7f75=[Object['prototype'][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1b2)],_0x37776c(0x19f))?_0x37776c(0x1cc):null,Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1aa)],'inherit')?_0x37776c(0x1a3):null][_0x37776c(0x1ad)](Boolean);_0x5e7f75[_0x37776c(0x196)]>0x0&&(console[_0x37776c(0x19c)](_0x37776c(0x185)+a101_0x3b993b[_0x37776c(0x1cf)](_0x37776c(0x16c)+_0x5e7f75[_0x37776c(0x198)](_0x37776c(0x1b0))+_0x37776c(0x177))),_0x5e7f75[_0x37776c(0x145)](_0x37776c(0x1a3))&&console[_0x37776c(0x19c)](_0x37776c(0x17b)+CLI_BIN_NAME+_0x37776c(0x1c8)),_0x5e7f75[_0x37776c(0x145)]('global')&&console[_0x37776c(0x19c)](_0x37776c(0x1d5)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x7207a0=isInvalidLovrabetRegion(_0x554564[_0x37776c(0x1c6)]??_0x554564[_0x37776c(0x14c)]?.[_0x37776c(0x152)]);_0x4f16df&&!_0x7207a0&&(console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x174))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e))),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x170))),console[_0x37776c(0x19c)](_0x37776c(0x1bc)+_0x4f16df[_0x37776c(0x1ab)]),Object[_0x37776c(0x1d0)]['hasOwnProperty'][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1aa)],_0x37776c(0x1b6))&&console[_0x37776c(0x19c)](_0x37776c(0x18c)+CLI_BIN_NAME+_0x37776c(0x1bb)),Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1b2)],_0x37776c(0x1b6))&&console[_0x37776c(0x19c)](_0x37776c(0x199)+CLI_BIN_NAME+_0x37776c(0x194)));console['log'](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x159))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e))),console[_0x37776c(0x19c)](_0x37776c(0x1d6)+(_0x554564[_0x37776c(0x1cd)]||a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x1a9))));const _0x4559df=_0x7207a0?a101_0x3b993b[_0x37776c(0x16e)](describeRegionValue(_0x554564['regionConfiguredValue']??_0x554564[_0x37776c(0x14c)]?.[_0x37776c(0x152)])+_0x37776c(0x18e)):(_0x554564[_0x37776c(0x152)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x554564['regionSource']??_0x37776c(0x15c))+')';console[_0x37776c(0x19c)](_0x37776c(0x1c1)+_0x4559df),console[_0x37776c(0x19c)](_0x37776c(0x188)+_0x554564['env']),console[_0x37776c(0x19c)](_0x37776c(0x172)+_0x554564['locale']),console[_0x37776c(0x19c)](_0x37776c(0x1a0)+_0x554564[_0x37776c(0x161)]),console[_0x37776c(0x19c)](_0x37776c(0x14e)+(_0x554564[_0x37776c(0x15b)]||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x156)))),console[_0x37776c(0x19c)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x554564['currentApp']||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x156)))),console[_0x37776c(0x19c)](_0x37776c(0x149)+(_0x554564[_0x37776c(0x175)]||a101_0x3b993b[_0x37776c(0x153)]('(none)'))),console['log'](_0x37776c(0x1d3)+(_0x554564[_0x37776c(0x146)]||a101_0x3b993b['gray'](_0x37776c(0x15a)+DEFAULT_CONFIG_VALUES[_0x37776c(0x146)]+')'))),console['log'](_0x37776c(0x1c2)+(_0x554564[_0x37776c(0x1a2)]??a101_0x3b993b['gray'](_0x37776c(0x158)))),console[_0x37776c(0x19c)](_0x37776c(0x1b8)+_0x554564['riskLevel']),console['log'](_0x37776c(0x163)+_0x554564['verbose']),console[_0x37776c(0x19c)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x554564['cookie']?a101_0x3b993b[_0x37776c(0x1ce)](_0x37776c(0x181)+_0x554564[_0x37776c(0x19d)]['length']+')'):_0x59438e?a101_0x3b993b[_0x37776c(0x1ce)]('(set\x20via\x20file,\x20length='+_0x59438e[_0x37776c(0x196)]+')'):a101_0x3b993b['gray'](_0x37776c(0x156))));const _0x5b6612=Object[_0x37776c(0x147)](_0x554564[_0x37776c(0x18d)]);if(_0x5b6612[_0x37776c(0x196)]>0x0){console['log'](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x176))),console['log'](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));for(const _0x453491 of _0x5b6612){const _0x8798ec=_0x554564[_0x37776c(0x18d)][_0x453491],_0x27c9c6=_0x453491===_0x554564['defaultApp'],_0x436f8c=_0x453491===_0x554564[_0x37776c(0x18f)],_0x6af971=_0x436f8c?a101_0x3b993b[_0x37776c(0x1ce)](_0x37776c(0x16f)):'',_0x54d243=_0x27c9c6?_0x37776c(0x197):'';console[_0x37776c(0x19c)]('\x20\x20'+_0x453491+_0x54d243+_0x6af971),console[_0x37776c(0x19c)](_0x37776c(0x148)+_0x8798ec[_0x37776c(0x17f)]);const _0x4102ce=_0x314f76[_0x37776c(0x1aa)][_0x37776c(0x18d)]&&typeof _0x314f76['projectConfig'][_0x37776c(0x18d)]===_0x37776c(0x1b5)?_0x314f76['projectConfig'][_0x37776c(0x18d)]:{},_0x13d0d1=Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x4102ce,_0x453491),_0x15974a=isInvalidLovrabetRegion(_0x8798ec['region'])?{'region':_0x554564['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x8798ec[_0x37776c(0x152)],'projectRegion':_0x13d0d1?_0x314f76['projectConfig'][_0x37776c(0x152)]:undefined,'globalRegion':_0x314f76[_0x37776c(0x1b2)]['region'],'mergedRegion':_0x554564[_0x37776c(0x14c)][_0x37776c(0x152)],'appName':_0x453491}),_0x214da0=buildAppDoctorFields(_0x8798ec,{'region':_0x15974a[_0x37776c(0x152)],'env':_0x554564[_0x37776c(0x16d)],'apiDir':_0x554564['raw'][_0x37776c(0x161)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x554564[_0x37776c(0x19d)]||_0x59438e||undefined,'accessKey':_0x554564[_0x37776c(0x15f)]});console[_0x37776c(0x19c)](_0x37776c(0x150)+_0x214da0['region'][_0x37776c(0x187)]+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0['region'][_0x37776c(0x189)]+')')),console[_0x37776c(0x19c)](_0x37776c(0x1a7)+_0x214da0[_0x37776c(0x16d)][_0x37776c(0x187)]+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0[_0x37776c(0x16d)][_0x37776c(0x189)]+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x214da0[_0x37776c(0x161)][_0x37776c(0x187)]+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0[_0x37776c(0x161)][_0x37776c(0x189)]+')'));const _0x18abed=_0x214da0[_0x37776c(0x19d)][_0x37776c(0x187)]?a101_0x3b993b[_0x37776c(0x1ce)](_0x37776c(0x181)+_0x214da0['cookie']['value'][_0x37776c(0x196)]+')'):a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x156));console[_0x37776c(0x19c)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x18abed+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0['cookie'][_0x37776c(0x189)]+')'));const _0x157074=_0x214da0[_0x37776c(0x15f)][_0x37776c(0x187)]?a101_0x3b993b[_0x37776c(0x1ce)]('(set,\x20length='+_0x214da0[_0x37776c(0x15f)][_0x37776c(0x187)][_0x37776c(0x196)]+')'):a101_0x3b993b[_0x37776c(0x153)]('(none)');console[_0x37776c(0x19c)](_0x37776c(0x171)+_0x157074+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0[_0x37776c(0x15f)][_0x37776c(0x189)]+')'));}}console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b['bold'](_0x37776c(0x1d1))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));_0x4f16df?console[_0x37776c(0x19c)](_0x37776c(0x182)+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x1ac))):(console[_0x37776c(0x19c)](_0x37776c(0x1c1)+getActiveRegion()),console[_0x37776c(0x19c)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x37776c(0x19c)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x37776c(0x19c)](_0x37776c(0x190)+getRuntimeDomain()),console['log']('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console['log'](_0x37776c(0x155)+getKbDomain()),console[_0x37776c(0x19c)](_0x37776c(0x1c5)+getAppDomain()));console[_0x37776c(0x19c)](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)]('\x20\x20Auth')),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)]('\x20\x20─'[_0x37776c(0x1c4)](0x1e)));if(_0x4f16df)console['log'](_0x37776c(0x182)+a101_0x3b993b['yellow'](_0x37776c(0x1ca)));else{if(_0x59438e){const _0x2a00c5=await getIsSessionValid();console['log'](_0x37776c(0x182)+(_0x2a00c5?a101_0x3b993b[_0x37776c(0x1ce)]('✓\x20Valid'):a101_0x3b993b[_0x37776c(0x16e)]('✗\x20Expired')));}else console[_0x37776c(0x19c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x191)));}return console[_0x37776c(0x19c)](),{'ok':!![]};}export const doctorDefinition={'service':a101_0x19c08b(0x18a),'command':a101_0x19c08b(0x1b4),'description':a101_0x19c08b(0x1c0),'risk':a101_0x19c08b(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102_0x333262=a102_0x5d74;(function(_0x9cfcc1,_0x58b662){const _0x2c539f=a102_0x5d74,_0x4b0790=_0x9cfcc1();while(!![]){try{const _0x30f205=-parseInt(_0x2c539f(0x1c7))/0x1+-parseInt(_0x2c539f(0x1bd))/0x2*(-parseInt(_0x2c539f(0x1be))/0x3)+-parseInt(_0x2c539f(0x1c1))/0x4+parseInt(_0x2c539f(0x1c0))/0x5*(parseInt(_0x2c539f(0x1ce))/0x6)+-parseInt(_0x2c539f(0x1b3))/0x7*(-parseInt(_0x2c539f(0x1d1))/0x8)+-parseInt(_0x2c539f(0x1cc))/0x9*(parseInt(_0x2c539f(0x1b4))/0xa)+parseInt(_0x2c539f(0x1b6))/0xb;if(_0x30f205===_0x58b662)break;else _0x4b0790['push'](_0x4b0790['shift']());}catch(_0x3ce701){_0x4b0790['push'](_0x4b0790['shift']());}}}(a102_0x3122,0xc02f9));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a102_0x5d74(_0x432218,_0x30680e){_0x432218=_0x432218-0x1b2;const _0x3122d8=a102_0x3122();let _0x5d743c=_0x3122d8[_0x432218];return _0x5d743c;}function a102_0x3122(){const _0x51e1fc=['Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','bool','boolean','File','274043uEduzf','9910oeOmSX','Preview:\x20upload\x20','13147376CuewFY','appCode','query-url','download','POST','/smartapi/common/uploadFile','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','2jtRJAD','3273141HXQFNx','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','5mKNRYR','3387184BKtfaZ','filepath','filePath','string','str','Uploaded\x20file:\x20','1184913ctyOHs','path','\x20to\x20development\x20app\x20','read','upload','8334dIyjSj','Path\x20to\x20the\x20local\x20file\x20to\x20upload','1420116sYnJIt','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','file','248ITzQDY','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','long-term'];a102_0x3122=function(){return _0x51e1fc;};return a102_0x3122();}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':'file','type':a102_0x333262(0x1c4),'required':!![],'description':a102_0x333262(0x1cd)},FILEPATH_FLAG={'name':a102_0x333262(0x1c2),'type':a102_0x333262(0x1c4),'required':!![],'description':a102_0x333262(0x1d4)},DOWNLOAD_FLAG={'name':a102_0x333262(0x1b9),'type':a102_0x333262(0x1d6),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':a102_0x333262(0x1cf)};function requireFilePath(_0x53a151){const _0x59a1aa=_0x53a151['trim']();if(!_0x59a1aa)throw CliErrors['validation']('filePath\x20is\x20required.');return _0x59a1aa;}const fileUpload={'service':a102_0x333262(0x1d0),'command':a102_0x333262(0x1cb),'description':a102_0x333262(0x1bc),'risk':a102_0x333262(0x1ca),'flags':[FILE_FLAG],async 'dryRun'(_0x4be1d4){const _0x3c321a=a102_0x333262,_0x2aff65=requireDevelopmentUploadFile(_0x4be1d4[_0x3c321a(0x1c5)](_0x3c321a(0x1d0)),_0x3c321a(0x1b2));return{'method':_0x3c321a(0x1ba),'url':_0x3c321a(0x1bb),'body':{'appCode':_0x4be1d4[_0x3c321a(0x1b7)],'multipart':{'file':_0x2aff65}},'description':_0x3c321a(0x1b5)+_0x2aff65[_0x3c321a(0x1c8)]+_0x3c321a(0x1c9)+_0x4be1d4['appCode']};},async 'execute'(_0x2fc2bc){const _0x506773=a102_0x333262,_0x58f34b=requireDevelopmentUploadFile(_0x2fc2bc[_0x506773(0x1c5)](_0x506773(0x1d0)),_0x506773(0x1b2)),_0xf0ab29=await uploadDevelopmentFile(_0x2fc2bc[_0x506773(0x1b7)],_0x58f34b[_0x506773(0x1c8)]);return{'ok':!![],'data':_0xf0ab29,'message':_0xf0ab29[_0x506773(0x1c3)]?_0x506773(0x1c6)+_0xf0ab29[_0x506773(0x1c3)]+_0x506773(0x1bf):_0x506773(0x1d2)};}},fileQueryUrl={'service':a102_0x333262(0x1d0),'command':a102_0x333262(0x1b8),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a102_0x333262(0x1ca),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x296a91){const _0x3d3eea=a102_0x333262,_0x149243=requireFilePath(_0x296a91[_0x3d3eea(0x1c5)](_0x3d3eea(0x1c2))),_0x4d3c9c=await queryDevelopmentFileUrl(_0x149243,{'download':_0x296a91[_0x3d3eea(0x1d5)]('download'),'longTerm':_0x296a91[_0x3d3eea(0x1d5)](_0x3d3eea(0x1d3))});return{'ok':!![],'data':_0x4d3c9c};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a103_0x500870=a103_0x35f1;function a103_0x5365(){const _0x51f957=['338290NAnPjG','appCode','policyRelativePath','read','589432PQQWun','14441856kLuAvc','3tNqGTN','31202bvYWUk','8315217jDutLv','1rpjsJE','21xYulPn','3070KzyFju','1261952vbmFAO','2068sERqAg','84fCqHQB','revision','current','policyFilePath'];a103_0x5365=function(){return _0x51f957;};return a103_0x5365();}(function(_0x349c76,_0x5d357d){const _0x40b8eb=a103_0x35f1,_0x4d6555=_0x349c76();while(!![]){try{const _0x647167=-parseInt(_0x40b8eb(0x146))/0x1*(-parseInt(_0x40b8eb(0x156))/0x2)+parseInt(_0x40b8eb(0x155))/0x3*(-parseInt(_0x40b8eb(0x153))/0x4)+parseInt(_0x40b8eb(0x14f))/0x5*(-parseInt(_0x40b8eb(0x14b))/0x6)+-parseInt(_0x40b8eb(0x147))/0x7*(parseInt(_0x40b8eb(0x149))/0x8)+parseInt(_0x40b8eb(0x145))/0x9+-parseInt(_0x40b8eb(0x148))/0xa*(-parseInt(_0x40b8eb(0x14a))/0xb)+parseInt(_0x40b8eb(0x154))/0xc;if(_0x647167===_0x5d357d)break;else _0x4d6555['push'](_0x4d6555['shift']());}catch(_0x1b8594){_0x4d6555['push'](_0x4d6555['shift']());}}}(a103_0x5365,0x9a854));function a103_0x35f1(_0x1f4d7d,_0x529aa2){_0x1f4d7d=_0x1f4d7d-0x145;const _0x5365ad=a103_0x5365();let _0x35f134=_0x5365ad[_0x1f4d7d];return _0x35f134;}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':a103_0x500870(0x14d),'description':'Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','risk':a103_0x500870(0x152),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x3c6a82){const _0xa1e18=a103_0x500870,_0x1e8b59=loadInstantApiPolicyLocalConfig(_0x3c6a82[_0xa1e18(0x150)]),_0x512144=await getCurrentInstantApiPolicy(_0x3c6a82[_0xa1e18(0x150)]);return{'ok':!![],'data':{'appCode':_0x3c6a82[_0xa1e18(0x150)],'configured':_0x512144!==null,'filePath':_0x1e8b59[_0xa1e18(0x14e)],'relativePath':_0x1e8b59[_0xa1e18(0x151)],'policy':projectCurrentPolicy(_0x512144)},'message':_0x512144?'Current\x20Instant\x20API\x20policy\x20revision\x20'+_0x512144[_0xa1e18(0x14c)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x3c6a82[_0xa1e18(0x150)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17c977,_0x1c135f){const _0x69b5ac=a104_0x10ee,_0x52f4e8=_0x17c977();while(!![]){try{const _0x13f259=-parseInt(_0x69b5ac(0x1e7))/0x1+parseInt(_0x69b5ac(0x1e8))/0x2*(-parseInt(_0x69b5ac(0x1e6))/0x3)+parseInt(_0x69b5ac(0x1e5))/0x4*(parseInt(_0x69b5ac(0x1e2))/0x5)+parseInt(_0x69b5ac(0x1e0))/0x6+parseInt(_0x69b5ac(0x1e4))/0x7+parseInt(_0x69b5ac(0x1e1))/0x8+parseInt(_0x69b5ac(0x1e3))/0x9;if(_0x13f259===_0x1c135f)break;else _0x52f4e8['push'](_0x52f4e8['shift']());}catch(_0x595ffc){_0x52f4e8['push'](_0x52f4e8['shift']());}}}(a104_0x181a,0x8abcb));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';function a104_0x10ee(_0x30314a,_0x33211e){_0x30314a=_0x30314a-0x1e0;const _0x181ab6=a104_0x181a();let _0x10eee1=_0x181ab6[_0x30314a];return _0x10eee1;}import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';function a104_0x181a(){const _0x78cb91=['1076920HbuOYJ','343810waifFX','3375660ijfTFc','7002608kjWIUm','2105580Dwtiot','1707453PUwxwO','243789LgfOTV','8rGYRVg','15rLYRxH'];a104_0x181a=function(){return _0x78cb91;};return a104_0x181a();}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
|
-
|
|
1
|
+
const a105_0x272ff3=a105_0x2502;(function(_0x598cf6,_0x3ba84e){const _0x2b399a=a105_0x2502,_0x554924=_0x598cf6();while(!![]){try{const _0x5a8d00=-parseInt(_0x2b399a(0x127))/0x1*(parseInt(_0x2b399a(0x125))/0x2)+-parseInt(_0x2b399a(0x11c))/0x3+-parseInt(_0x2b399a(0x118))/0x4*(-parseInt(_0x2b399a(0x11f))/0x5)+parseInt(_0x2b399a(0x12d))/0x6+-parseInt(_0x2b399a(0x12b))/0x7+-parseInt(_0x2b399a(0x11a))/0x8*(parseInt(_0x2b399a(0x12f))/0x9)+parseInt(_0x2b399a(0x128))/0xa;if(_0x5a8d00===_0x3ba84e)break;else _0x554924['push'](_0x554924['shift']());}catch(_0x3ffecd){_0x554924['push'](_0x554924['shift']());}}}(a105_0x109f,0x30367));function a105_0x109f(){const _0x125c1f=['init','default-action','action','write','force','20bToFdj','Created','16607tEBoZA','4814430zzaNZL','policyFilePath','deny','2307319enYZAj','Kept','1253538DvUUdO','str','9ptAFJc','705844ifyiYk','instant-api-policy','829688zMkpFn','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','739233BFLdRW','allow','appCode','10CRIcwE'];a105_0x109f=function(){return _0x125c1f;};return a105_0x109f();}import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a105_0x2502(_0x317741,_0x148f20){_0x317741=_0x317741-0x118;const _0x109f58=a105_0x109f();let _0x250287=_0x109f58[_0x317741];return _0x250287;}export const instantApiPolicyInit={'service':a105_0x272ff3(0x119),'command':a105_0x272ff3(0x120),'description':a105_0x272ff3(0x11b),'risk':a105_0x272ff3(0x123),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'default-action','type':'string','enum':['allow','deny'],'default':a105_0x272ff3(0x11d),'description':'Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches'},FORCE_FLAG],async 'validate'(_0x5ecae2){requireForceConfirmation(_0x5ecae2);},async 'execute'(_0x50e5ed){const _0x196ca5=a105_0x272ff3;requireForceConfirmation(_0x50e5ed);const _0x49468d=_0x50e5ed[_0x196ca5(0x12e)](_0x196ca5(0x121))==='deny'?_0x196ca5(0x12a):'allow',_0x13ec89=loadInstantApiPolicyLocalConfig(_0x50e5ed['appCode']),_0x4de2c0=createDefaultInstantApiPolicyConfig(_0x50e5ed['appCode'],_0x49468d),_0x536ec4=await writeInstantApiPolicyConfigFile(_0x13ec89,_0x4de2c0,{'force':_0x50e5ed['bool'](_0x196ca5(0x124))}),_0x4480d7={'created':_0x196ca5(0x126),'overwritten':'Replaced','unchanged':_0x196ca5(0x12c)}[_0x536ec4[_0x196ca5(0x122)]];return{'ok':!![],'data':{'operation':_0x196ca5(0x120),'selector':{'appCode':_0x50e5ed['appCode']},'filePath':_0x13ec89[_0x196ca5(0x129)],'relativePath':_0x13ec89['policyRelativePath'],'action':_0x536ec4[_0x196ca5(0x122)],'config':_0x4de2c0},'message':_0x4480d7+'\x20Instant\x20API\x20policy\x20file\x20for\x20'+_0x50e5ed[_0x196ca5(0x11e)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106_0x2985e3=a106_0x11be;(function(_0x40409d,_0x4f3d05){const _0x573492=a106_0x11be,_0x5688ee=_0x40409d();while(!![]){try{const _0x21030a=parseInt(_0x573492(0x15a))/0x1*(-parseInt(_0x573492(0x14e))/0x2)+-parseInt(_0x573492(0x168))/0x3*(parseInt(_0x573492(0x16e))/0x4)+-parseInt(_0x573492(0x16f))/0x5+parseInt(_0x573492(0x162))/0x6+-parseInt(_0x573492(0x154))/0x7*(-parseInt(_0x573492(0x156))/0x8)+parseInt(_0x573492(0x157))/0x9*(parseInt(_0x573492(0x15d))/0xa)+parseInt(_0x573492(0x165))/0xb*(parseInt(_0x573492(0x15f))/0xc);if(_0x21030a===_0x4f3d05)break;else _0x5688ee['push'](_0x5688ee['shift']());}catch(_0xd23822){_0x5688ee['push'](_0x5688ee['shift']());}}}(a106_0x5391,0x4b04e));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';function a106_0x11be(_0x5e894a,_0x1d1690){_0x5e894a=_0x5e894a-0x14d;const _0x539121=a106_0x5391();let _0x11be6a=_0x539121[_0x5e894a];return _0x11be6a;}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';function a106_0x5391(){const _0x34bc4a=['Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','expectedRevision','880019zADrLG','instant_api_policy_publish_verification_failed','8RfDipA','1338462kjoMdo','before','all','66029sksOLF','defineProperty','push','10xuzkfb','POST','120PxvpFy','appCode','publish','3016482YmQhrR','config','cause','147191cAyqsO','/publish','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','84792aHwFmw','verified','policyRelativePath','instant_api_policy_publish_verification_unavailable','validation','policyFilePath','40NJBWOj','1275225JvQtsl','high-risk-write','instant_api_policy_publish_outcome_unknown','local','changeSummary','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','normalizedConfig','2pqcdum','`;\x20do\x20not\x20resubmit\x20automatically.','configHash','revision'];a106_0x5391=function(){return _0x34bc4a;};return a106_0x5391();}async function preparePublish(_0x979ef2){const _0x54f1d3=a106_0x11be,{local:_0x14c5d6,config:_0x47b998}=await readFixedPolicy(_0x979ef2),_0x3bb21a=readChangeSummary(_0x979ef2),_0x4c7707=readExpectedRevision(_0x979ef2),[_0x382b11,_0x4f3dcb]=await Promise[_0x54f1d3(0x159)]([getCurrentInstantApiPolicy(_0x979ef2[_0x54f1d3(0x160)]),validateInstantApiPolicy({'appCode':_0x979ef2[_0x54f1d3(0x160)],'config':_0x47b998})]);return assertExpectedRevision(_0x382b11,_0x4c7707),{'local':_0x14c5d6,'config':_0x47b998,'changeSummary':_0x3bb21a,'expectedRevision':_0x4c7707,'before':_0x382b11,'validation':_0x4f3dcb};}export const instantApiPolicyPublish={'service':'instant-api-policy','command':'publish','description':a106_0x2985e3(0x167),'risk':a106_0x2985e3(0x170),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a106_0x2985e3(0x152),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x402636){readChangeSummary(_0x402636),readExpectedRevision(_0x402636);},async 'dryRun'(_0x1110f7){const _0x37e008=a106_0x2985e3,_0x373b2a=await preparePublish(_0x1110f7);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x1110f7[_0x37e008(0x160)]},'before':projectCurrentPolicy(_0x373b2a['before']),'after':{'revision':_0x373b2a[_0x37e008(0x158)]?_0x373b2a['before'][_0x37e008(0x151)]+0x1:0x1,'configHash':_0x373b2a['validation'][_0x37e008(0x150)],'config':_0x373b2a[_0x37e008(0x16c)][_0x37e008(0x14d)]},'filePath':_0x373b2a[_0x37e008(0x172)][_0x37e008(0x16d)],'relativePath':_0x373b2a[_0x37e008(0x172)][_0x37e008(0x16a)],'dryRun':!![],'backend':{'method':_0x37e008(0x15e),'path':INSTANT_API_POLICY_BASE_PATH+_0x37e008(0x166)},'warnings':expectedRevisionWarnings(_0x373b2a[_0x37e008(0x153)]),'verification':{'status':'planned','expectedRevision':_0x373b2a['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x37e008(0x15e),'url':INSTANT_API_POLICY_BASE_PATH+_0x37e008(0x166)});},async 'execute'(_0x9328e7){const _0x4a2a9b=a106_0x2985e3,_0x4a1404=await preparePublish(_0x9328e7);let _0x25b90c=![];try{await publishInstantApiPolicy({'appCode':_0x9328e7[_0x4a2a9b(0x160)],'config':_0x4a1404[_0x4a2a9b(0x163)],..._0x4a1404[_0x4a2a9b(0x173)]?{'changeSummary':_0x4a1404[_0x4a2a9b(0x173)]}:{}});}catch(_0x48f956){if(!isPlatformTransportFailure(_0x48f956))throw _0x48f956;_0x25b90c=!![];}let _0x1cf57a;try{_0x1cf57a=await getCurrentInstantApiPolicy(_0x9328e7[_0x4a2a9b(0x160)]);}catch(_0x4b509f){const _0x10bec6=instantApiPolicyError(_0x25b90c?_0x4a2a9b(0x171):_0x4a2a9b(0x16b),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20`'+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x4a2a9b(0x15b)](_0x10bec6,_0x4a2a9b(0x164),{'value':_0x4b509f,'enumerable':![]});throw _0x10bec6;}const _0x20723a=_0x1cf57a&&(_0x4a1404['before']===null||_0x1cf57a[_0x4a2a9b(0x151)]>_0x4a1404['before']['revision']),_0x6b37db=_0x1cf57a?.['configHash']===_0x4a1404['validation'][_0x4a2a9b(0x150)];if(!_0x1cf57a||!_0x20723a||!_0x6b37db)throw instantApiPolicyError(_0x25b90c?_0x4a2a9b(0x171):_0x4a2a9b(0x155),_0x4a2a9b(0x174),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x4a2a9b(0x14f));const _0x584f8e=[...expectedRevisionWarnings(_0x4a1404[_0x4a2a9b(0x153)]),RUNTIME_CACHE_WARNING];return _0x25b90c&&_0x584f8e[_0x4a2a9b(0x15c)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x4a2a9b(0x161),'selector':{'appCode':_0x9328e7[_0x4a2a9b(0x160)]},'before':projectCurrentPolicy(_0x4a1404['before']),'after':projectCurrentPolicy(_0x1cf57a),'filePath':_0x4a1404[_0x4a2a9b(0x172)][_0x4a2a9b(0x16d)],'relativePath':_0x4a1404[_0x4a2a9b(0x172)][_0x4a2a9b(0x16a)],'dryRun':![],'backend':{'method':_0x4a2a9b(0x15e),'path':INSTANT_API_POLICY_BASE_PATH+_0x4a2a9b(0x166)},'warnings':_0x584f8e,'verification':{'status':_0x4a2a9b(0x169),'recoveredAfterUnknownResponse':_0x25b90c,'expectedRevision':_0x4a1404[_0x4a2a9b(0x153)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Published\x20Instant\x20API\x20policy\x20revision\x20'+_0x1cf57a[_0x4a2a9b(0x151)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0x5d87c4=a107_0x41ce;(function(_0x2accbd,_0x5386e8){const _0x1ff567=a107_0x41ce,_0x16d25f=_0x2accbd();while(!![]){try{const _0x3c3af8=parseInt(_0x1ff567(0x116))/0x1+-parseInt(_0x1ff567(0x107))/0x2*(parseInt(_0x1ff567(0x10f))/0x3)+parseInt(_0x1ff567(0x118))/0x4+-parseInt(_0x1ff567(0x105))/0x5+parseInt(_0x1ff567(0x113))/0x6*(-parseInt(_0x1ff567(0x10a))/0x7)+parseInt(_0x1ff567(0x112))/0x8*(-parseInt(_0x1ff567(0x10b))/0x9)+parseInt(_0x1ff567(0x11a))/0xa;if(_0x3c3af8===_0x5386e8)break;else _0x16d25f['push'](_0x16d25f['shift']());}catch(_0x732c78){_0x16d25f['push'](_0x16d25f['shift']());}}}(a107_0x1541,0xe3f30));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a107_0x1541(){const _0x650712=['config','19228220oPSBuj','revision','1451515yjGRDA','policyRelativePath','278zpUzDi','instant_api_policy_not_configured','pull','34559OEJrls','2555685YIJint','appCode','force','policyFilePath','15759vsTpOK','unchanged','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','8wqLriw','1386EoImYa','action','Pulled','1046763YHNIgT','Kept','1635908PkIBlA'];a107_0x1541=function(){return _0x650712;};return a107_0x1541();}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a107_0x41ce(_0x1aea4d,_0x10e6ed){_0x1aea4d=_0x1aea4d-0x104;const _0x1541a9=a107_0x1541();let _0x41ce66=_0x1541a9[_0x1aea4d];return _0x41ce66;}export const instantApiPolicyPull={'service':'instant-api-policy','command':a107_0x5d87c4(0x109),'description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x140e2d){requireForceConfirmation(_0x140e2d);},async 'execute'(_0x3d0af9){const _0x1fcd5c=a107_0x5d87c4;requireForceConfirmation(_0x3d0af9);const _0x51e62f=await getCurrentInstantApiPolicy(_0x3d0af9['appCode']);if(!_0x51e62f)throw instantApiPolicyError(_0x1fcd5c(0x108),'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x3d0af9[_0x1fcd5c(0x10c)]+'.',_0x1fcd5c(0x111));const _0x4c52da=loadInstantApiPolicyLocalConfig(_0x3d0af9['appCode']),_0x3f5d1b=await writeInstantApiPolicyConfigFile(_0x4c52da,_0x51e62f[_0x1fcd5c(0x119)],{'force':_0x3d0af9['bool'](_0x1fcd5c(0x10d))});return{'ok':!![],'data':{'operation':_0x1fcd5c(0x109),'selector':{'appCode':_0x3d0af9['appCode'],'revision':_0x51e62f['revision']},'filePath':_0x4c52da[_0x1fcd5c(0x10e)],'relativePath':_0x4c52da[_0x1fcd5c(0x106)],'action':_0x3f5d1b[_0x1fcd5c(0x114)],'configHash':_0x51e62f['configHash']},'message':(_0x3f5d1b[_0x1fcd5c(0x114)]===_0x1fcd5c(0x110)?_0x1fcd5c(0x117):_0x1fcd5c(0x115))+'\x20Instant\x20API\x20policy\x20revision\x20'+_0x51e62f[_0x1fcd5c(0x104)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108_0x24c9a6=a108_0x567c;(function(_0x41ff54,_0xde7970){const _0xe9c97=a108_0x567c,_0x15eb79=_0x41ff54();while(!![]){try{const _0x5aabaf=-parseInt(_0xe9c97(0xd6))/0x1+-parseInt(_0xe9c97(0xcb))/0x2+parseInt(_0xe9c97(0xcd))/0x3*(parseInt(_0xe9c97(0xd7))/0x4)+parseInt(_0xe9c97(0xcc))/0x5+parseInt(_0xe9c97(0xce))/0x6+parseInt(_0xe9c97(0xd3))/0x7+parseInt(_0xe9c97(0xd8))/0x8*(-parseInt(_0xe9c97(0xcf))/0x9);if(_0x5aabaf===_0xde7970)break;else _0x15eb79['push'](_0x15eb79['shift']());}catch(_0x5d1cb7){_0x15eb79['push'](_0x15eb79['shift']());}}}(a108_0x1e7f,0x9d127));import{getInstantApiPolicyRevision}from'../../core/api-client.js';function a108_0x567c(_0x1446b9,_0x2d62ef){_0x1446b9=_0x1446b9-0xcb;const _0x1e7f66=a108_0x1e7f();let _0x567c4f=_0x1e7f66[_0x1446b9];return _0x567c4f;}import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':a108_0x24c9a6(0xd5),'command':a108_0x24c9a6(0xd0),'description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':a108_0x24c9a6(0xd1),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0xbbc932){readRevision(_0xbbc932);},async 'execute'(_0x1c9be8){const _0xd8645e=a108_0x24c9a6,_0x4643e0=readRevision(_0x1c9be8),_0xddc06f=await getInstantApiPolicyRevision(_0x1c9be8[_0xd8645e(0xd4)],_0x4643e0);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0xddc06f)},'message':_0xd8645e(0xd2)+_0x4643e0};}};function a108_0x1e7f(){const _0xdd3b2a=['3801410ZBaacz','858BeoUoV','6237018mTrNIS','5770566XlNoqK','revision','read','Loaded\x20Instant\x20API\x20policy\x20revision\x20','7188958kCzvWm','appCode','instant-api-policy','983548enbaCS','6992XEeWtZ','8WLDdPe','2117236XDnyvL'];a108_0x1e7f=function(){return _0xdd3b2a;};return a108_0x1e7f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x35eba9=a109_0x4613;(function(_0x2cfaf9,_0x58627){const _0x62422c=a109_0x4613,_0x2dcf24=_0x2cfaf9();while(!![]){try{const _0x4b17eb=parseInt(_0x62422c(0x115))/0x1+parseInt(_0x62422c(0x112))/0x2+-parseInt(_0x62422c(0x11c))/0x3+-parseInt(_0x62422c(0x118))/0x4*(-parseInt(_0x62422c(0x11f))/0x5)+parseInt(_0x62422c(0x11b))/0x6*(parseInt(_0x62422c(0x110))/0x7)+parseInt(_0x62422c(0x117))/0x8*(-parseInt(_0x62422c(0x10f))/0x9)+-parseInt(_0x62422c(0x111))/0xa;if(_0x4b17eb===_0x58627)break;else _0x2dcf24['push'](_0x2dcf24['shift']());}catch(_0x260e7b){_0x2dcf24['push'](_0x2dcf24['shift']());}}}(a109_0x19c6,0xb8018));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a109_0x4613(_0xcf114f,_0x2d3074){_0xcf114f=_0xcf114f-0x10f;const _0x19c64e=a109_0x19c6();let _0x46136c=_0x19c64e[_0xcf114f];return _0x46136c;}function a109_0x19c6(){const _0x9b7281=['length','756rQDNGz','343050YYpyNw','read','appCode','3665MlALQn','2385JnaHqr','78036DduqnL','16500580TBnRpz','468810wDWHoE','Found\x20','revisions','1398706xpIxLk','map','23632yDrESF','1436cPRoPW','List\x20immutable\x20Instant\x20API\x20policy\x20revisions'];a109_0x19c6=function(){return _0x9b7281;};return a109_0x19c6();}export const instantApiPolicyRevisions={'service':'instant-api-policy','command':a109_0x35eba9(0x114),'description':a109_0x35eba9(0x119),'risk':a109_0x35eba9(0x11d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x4b1b00){const _0x300905=a109_0x35eba9,_0x19494c=await listInstantApiPolicyRevisions(_0x4b1b00[_0x300905(0x11e)]);return{'ok':!![],'data':{'appCode':_0x4b1b00[_0x300905(0x11e)],'total':_0x19494c['length'],'revisions':_0x19494c[_0x300905(0x116)](projectRevisionSummary)},'message':_0x300905(0x113)+_0x19494c[_0x300905(0x11a)]+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x5c5af5=a110_0x5a8b;function a110_0x5a8b(_0x22ba74,_0x215246){_0x22ba74=_0x22ba74-0x132;const _0x44a019=a110_0x44a0();let _0x5a8b16=_0x44a019[_0x22ba74];return _0x5a8b16;}(function(_0x4ea38c,_0x33ac26){const _0x5e2b11=a110_0x5a8b,_0x25c4d7=_0x4ea38c();while(!![]){try{const _0x28bf81=parseInt(_0x5e2b11(0x149))/0x1+-parseInt(_0x5e2b11(0x134))/0x2+-parseInt(_0x5e2b11(0x13c))/0x3+-parseInt(_0x5e2b11(0x153))/0x4+-parseInt(_0x5e2b11(0x13a))/0x5+parseInt(_0x5e2b11(0x140))/0x6+parseInt(_0x5e2b11(0x14d))/0x7*(parseInt(_0x5e2b11(0x14e))/0x8);if(_0x28bf81===_0x33ac26)break;else _0x25c4d7['push'](_0x25c4d7['shift']());}catch(_0x6b3655){_0x25c4d7['push'](_0x25c4d7['shift']());}}}(a110_0x44a0,0xc1059));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';function a110_0x44a0(){const _0x55e16f=['Rolled\x20Instant\x20API\x20policy\x20revision\x20','push','/rollback','cause','1140426MQiAvM','defineProperty','instant_api_policy_rollback_verification_unavailable','POST','7749lxoKHg','10864ZsNaae','appCode','before','`;\x20do\x20not\x20resubmit\x20automatically.','instant_api_policy_rollback_outcome_unknown','1895064MYfXJO','instant-api-policy','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','1997682AIRvHr','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','configHash','revision','changeSummary','target','2541460nbxMNZ','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','4083561SoaWAg','expectedRevision','instant_api_policy_not_configured','rollback','8933826VGfDhI','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','instant_api_policy_rollback_verification_failed','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','high-risk-write'];a110_0x44a0=function(){return _0x55e16f;};return a110_0x44a0();}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(_0x3530ea){const _0x525e91=a110_0x5a8b,_0x20c780=readRevision(_0x3530ea),_0x310b78=readChangeSummary(_0x3530ea),_0x18d458=readExpectedRevision(_0x3530ea),[_0x5031c9,_0x228edd]=await Promise['all']([getCurrentInstantApiPolicy(_0x3530ea['appCode']),getInstantApiPolicyRevision(_0x3530ea[_0x525e91(0x14f)],_0x20c780)]);if(!_0x5031c9)throw instantApiPolicyError(_0x525e91(0x13e),_0x525e91(0x133)+_0x3530ea[_0x525e91(0x14f)]+'.');return assertExpectedRevision(_0x5031c9,_0x18d458),{'revision':_0x20c780,'changeSummary':_0x310b78,'expectedRevision':_0x18d458,'before':_0x5031c9,'target':_0x228edd};}export const instantApiPolicyRollback={'service':a110_0x5c5af5(0x132),'command':'rollback','description':a110_0x5c5af5(0x141),'risk':a110_0x5c5af5(0x144),'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'(_0x2a2a48){readRevision(_0x2a2a48),readChangeSummary(_0x2a2a48),readExpectedRevision(_0x2a2a48);},async 'dryRun'(_0x5b3e23){const _0x35d815=a110_0x5c5af5,_0x4837a6=await prepareRollback(_0x5b3e23);return asDryRunResult({'operation':_0x35d815(0x13f),'selector':{'appCode':_0x5b3e23[_0x35d815(0x14f)],'sourceRevision':_0x4837a6['revision']},'before':projectCurrentPolicy(_0x4837a6[_0x35d815(0x150)]),'after':{'revision':_0x4837a6[_0x35d815(0x150)][_0x35d815(0x137)]+0x1,'sourceRevision':projectRevisionDetail(_0x4837a6[_0x35d815(0x139)])},'dryRun':!![],'backend':{'method':_0x35d815(0x14c),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x4837a6['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x4837a6[_0x35d815(0x13d)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+_0x35d815(0x147)});},async 'execute'(_0x4b6e8a){const _0x210e23=a110_0x5c5af5,_0x4a6374=await prepareRollback(_0x4b6e8a);let _0x2db136=![];try{await rollbackInstantApiPolicy({'appCode':_0x4b6e8a[_0x210e23(0x14f)],'revision':_0x4a6374[_0x210e23(0x137)],..._0x4a6374[_0x210e23(0x138)]?{'changeSummary':_0x4a6374[_0x210e23(0x138)]}:{}});}catch(_0x2f273f){if(!isPlatformTransportFailure(_0x2f273f))throw _0x2f273f;_0x2db136=!![];}let _0x169e2e;try{_0x169e2e=await getCurrentInstantApiPolicy(_0x4b6e8a[_0x210e23(0x14f)]);}catch(_0x8cfeb3){const _0x221b5d=instantApiPolicyError(_0x2db136?_0x210e23(0x152):_0x210e23(0x14b),_0x210e23(0x135),'Inspect\x20with\x20`'+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x210e23(0x14a)](_0x221b5d,_0x210e23(0x148),{'value':_0x8cfeb3,'enumerable':![]});throw _0x221b5d;}const _0x464208=_0x169e2e&&_0x169e2e[_0x210e23(0x137)]>_0x4a6374[_0x210e23(0x150)]['revision'],_0x46f2f1=_0x169e2e?.[_0x210e23(0x136)]===_0x4a6374[_0x210e23(0x139)][_0x210e23(0x136)];if(!_0x169e2e||!_0x464208||!_0x46f2f1)throw instantApiPolicyError(_0x2db136?'instant_api_policy_rollback_outcome_unknown':_0x210e23(0x142),_0x210e23(0x143),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x210e23(0x151));const _0x31ccdd=[...expectedRevisionWarnings(_0x4a6374[_0x210e23(0x13d)]),RUNTIME_CACHE_WARNING];return _0x2db136&&_0x31ccdd[_0x210e23(0x146)](_0x210e23(0x13b)),{'ok':!![],'data':{'operation':_0x210e23(0x13f),'selector':{'appCode':_0x4b6e8a[_0x210e23(0x14f)],'sourceRevision':_0x4a6374['revision']},'before':projectCurrentPolicy(_0x4a6374['before']),'after':projectCurrentPolicy(_0x169e2e),'dryRun':![],'backend':{'method':_0x210e23(0x14c),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x31ccdd,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x2db136,'expectedRevision':_0x4a6374[_0x210e23(0x13d)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x210e23(0x145)+_0x4a6374[_0x210e23(0x137)]+'\x20forward\x20to\x20revision\x20'+_0x169e2e[_0x210e23(0x137)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x251236=a111_0x513e;(function(_0x2c4539,_0x189327){const _0xb44d83=a111_0x513e,_0x583639=_0x2c4539();while(!![]){try{const _0x365c96=-parseInt(_0xb44d83(0x102))/0x1+-parseInt(_0xb44d83(0xfd))/0x2*(-parseInt(_0xb44d83(0xed))/0x3)+parseInt(_0xb44d83(0xe1))/0x4+-parseInt(_0xb44d83(0xe5))/0x5+-parseInt(_0xb44d83(0xeb))/0x6*(parseInt(_0xb44d83(0xf8))/0x7)+-parseInt(_0xb44d83(0xd8))/0x8+parseInt(_0xb44d83(0xd5))/0x9*(parseInt(_0xb44d83(0x109))/0xa);if(_0x365c96===_0x189327)break;else _0x583639['push'](_0x583639['shift']());}catch(_0x39e828){_0x583639['push'](_0x583639['shift']());}}}(a111_0x2ce3,0x7cbf8));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a111_0x251236(0xf0);export const RUNTIME_CACHE_WARNING=a111_0x251236(0xdd);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a111_0x251236(0xfc);export const FORCE_FLAG={'name':'force','type':a111_0x251236(0xec),'default':![],'description':'Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes'};export const CHANGE_SUMMARY_FLAG={'name':a111_0x251236(0xe0),'type':a111_0x251236(0xf5),'required':![],'description':'Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)'};export const REVISION_FLAG={'name':a111_0x251236(0xff),'type':a111_0x251236(0xfb),'required':!![],'description':'Positive\x20published\x20policy\x20revision'};export const EXPECTED_REVISION_FLAG={'name':a111_0x251236(0xf7),'type':'number','required':![],'description':a111_0x251236(0xd7)};export function requireForceConfirmation(_0x30577e){const _0x32f4fa=a111_0x251236;if(!_0x30577e[_0x32f4fa(0x107)]('force')||_0x30577e[_0x32f4fa(0x107)]('yes'))return;throw instantApiPolicyError(_0x32f4fa(0xf3),_0x32f4fa(0xe4),'Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.');}export function readChangeSummary(_0x3b345b){const _0x1261fd=a111_0x251236,_0xc7b6b0=_0x3b345b[_0x1261fd(0xdc)](_0x1261fd(0xe0))['trim']();if(!_0xc7b6b0)return undefined;if(_0xc7b6b0[_0x1261fd(0xd6)]>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid','--change-summary\x20cannot\x20exceed\x202000\x20characters.');return _0xc7b6b0;}export function readRevision(_0x159aba){const _0xc0b51d=a111_0x251236,_0x5377fa=_0x159aba[_0xc0b51d(0xe9)](_0xc0b51d(0xff),Number[_0xc0b51d(0xf1)]);if(!Number[_0xc0b51d(0xf2)](_0x5377fa)||_0x5377fa<=0x0)throw instantApiPolicyError(_0xc0b51d(0xe2),_0xc0b51d(0xea));return _0x5377fa;}export function readExpectedRevision(_0x1d3778){const _0x460c68=a111_0x251236;if(_0x1d3778[_0x460c68(0x104)]('expected-revision')===undefined)return undefined;const _0x3618ec=_0x1d3778[_0x460c68(0xe9)](_0x460c68(0xf7),Number[_0x460c68(0xf1)]);if(!Number[_0x460c68(0xf2)](_0x3618ec)||_0x3618ec<0x0)throw instantApiPolicyError(_0x460c68(0x103),_0x460c68(0xf4));return _0x3618ec;}function a111_0x513e(_0x393673,_0x42be0e){_0x393673=_0x393673-0xd5;const _0x2ce311=a111_0x2ce3();let _0x513e57=_0x2ce311[_0x393673];return _0x513e57;}export function assertExpectedRevision(_0x48ddb1,_0x5d03e0){const _0x3dc283=a111_0x251236;if(_0x5d03e0===undefined)return;const _0x529855=_0x48ddb1?.[_0x3dc283(0xff)]??0x0;if(_0x529855!==_0x5d03e0)throw instantApiPolicyError(_0x3dc283(0xfa),'The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.',_0x3dc283(0x108)+_0x5d03e0+_0x3dc283(0xf6)+_0x529855+_0x3dc283(0xdb));}export async function readFixedPolicy(_0x5162b0){const _0x1a9eb7=a111_0x251236,_0x559fbc=loadInstantApiPolicyLocalConfig(_0x5162b0[_0x1a9eb7(0xde)]),_0x2c0005=await readInstantApiPolicyConfigFile(_0x559fbc);return{'local':_0x559fbc,'config':_0x2c0005};}export function projectCurrentPolicy(_0x364ac3){const _0x3a924f=a111_0x251236;if(!_0x364ac3)return null;return{'id':_0x364ac3['id'],'appCode':_0x364ac3[_0x3a924f(0xde)],'revision':_0x364ac3[_0x3a924f(0xff)],'configHash':_0x364ac3['configHash'],'enabled':_0x364ac3[_0x3a924f(0xe6)],'config':_0x364ac3[_0x3a924f(0xe8)],'createUserId':_0x364ac3[_0x3a924f(0x101)]??null,'updateUserId':_0x364ac3[_0x3a924f(0x105)]??null,'gmtCreate':_0x364ac3[_0x3a924f(0xdf)]??null,'gmtModified':_0x364ac3[_0x3a924f(0xf9)]??null};}export function projectRevisionSummary(_0x128389){const _0x9cfcbc=a111_0x251236;return{'id':_0x128389['id'],'policyId':_0x128389[_0x9cfcbc(0xd9)],'appCode':_0x128389[_0x9cfcbc(0xde)],'revision':_0x128389[_0x9cfcbc(0xff)],'configHash':_0x128389[_0x9cfcbc(0xfe)],'changeType':_0x128389[_0x9cfcbc(0xee)],'changeSummary':_0x128389[_0x9cfcbc(0x100)]??null,'operatorId':_0x128389[_0x9cfcbc(0xe7)]??null,'gmtCreate':_0x128389[_0x9cfcbc(0xdf)]??null,'version':_0x128389[_0x9cfcbc(0xe8)][_0x9cfcbc(0xda)],'defaultAction':_0x128389[_0x9cfcbc(0xe8)][_0x9cfcbc(0xef)][_0x9cfcbc(0xe3)],'ruleCount':_0x128389[_0x9cfcbc(0xe8)][_0x9cfcbc(0x106)]?.[_0x9cfcbc(0xd6)]??0x0};}export function projectRevisionDetail(_0x4a5a94){const _0x1e1224=a111_0x251236;return{...projectRevisionSummary(_0x4a5a94),'config':_0x4a5a94[_0x1e1224(0xe8)]};}export function expectedRevisionWarnings(_0x599ba2){return _0x599ba2===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){return'rabetbase\x20instant-api-policy\x20current\x20--format\x20compress';}function a111_0x2ce3(){const _0x306d87=['str','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','appCode','gmtCreate','change-summary','1097872oAVGzE','instant_api_policy_revision_invalid','instantApi','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','4769340uhxDPW','enabled','operatorId','config','num','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','16062HAAqTq','boolean','3ihhbWp','changeType','defaults','/smartapi/instant-api-policy','NaN','isSafeInteger','instant_api_policy_force_confirmation_required','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','string',';\x20current\x20revision\x20is\x20','expected-revision','364WylLoF','gmtModified','instant_api_policy_revision_mismatch','number','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','1852322FKwJvT','configHash','revision','changeSummary','createUserId','694810TeAfaP','instant_api_policy_expected_revision_invalid','flag','updateUserId','rules','bool','Expected\x20revision\x20','1030cfJyVR','102933WLAwWT','length','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','638320gUevmR','policyId','version','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.'];a111_0x2ce3=function(){return _0x306d87;};return a111_0x2ce3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a112_0x334a(){const _0xa54417=['516712BQTFoW','2935476xOzysv','/validate','appCode','configHash','read','policyRelativePath','valid','validate','5xnzSxH','normalizedConfig','1602162mckStU','171NTAKmg','4216083AEXPER','787328qWlHUn','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','232571ywtAmQ','POST','3123154dESJNw','Validated\x20Instant\x20API\x20policy\x20for\x20'];a112_0x334a=function(){return _0xa54417;};return a112_0x334a();}const a112_0x154e20=a112_0x8713;(function(_0x4ba422,_0x1277c6){const _0x1b9349=a112_0x8713,_0x252e05=_0x4ba422();while(!![]){try{const _0x42df09=parseInt(_0x1b9349(0x1cf))/0x1+-parseInt(_0x1b9349(0x1d1))/0x2+parseInt(_0x1b9349(0x1cc))/0x3+parseInt(_0x1b9349(0x1d4))/0x4*(-parseInt(_0x1b9349(0x1c8))/0x5)+-parseInt(_0x1b9349(0x1ca))/0x6+-parseInt(_0x1b9349(0x1d3))/0x7+parseInt(_0x1b9349(0x1cd))/0x8*(parseInt(_0x1b9349(0x1cb))/0x9);if(_0x42df09===_0x1277c6)break;else _0x252e05['push'](_0x252e05['shift']());}catch(_0x48dba7){_0x252e05['push'](_0x252e05['shift']());}}}(a112_0x334a,0xd4c7b));function a112_0x8713(_0x1c3a0c,_0x22efd8){_0x1c3a0c=_0x1c3a0c-0x1c2;const _0x334a84=a112_0x334a();let _0x871322=_0x334a84[_0x1c3a0c];return _0x871322;}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':'instant-api-policy','command':'validate','description':a112_0x154e20(0x1ce),'risk':a112_0x154e20(0x1c4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x498388){const _0x23d84d=a112_0x154e20,{local:_0x20dc79,config:_0x5e8862}=await readFixedPolicy(_0x498388),_0x51b72f=await validateInstantApiPolicy({'appCode':_0x498388[_0x23d84d(0x1c2)],'config':_0x5e8862});return{'ok':!![],'data':{'operation':_0x23d84d(0x1c7),'selector':{'appCode':_0x498388[_0x23d84d(0x1c2)]},'filePath':_0x20dc79['policyFilePath'],'relativePath':_0x20dc79[_0x23d84d(0x1c5)],'valid':_0x51b72f[_0x23d84d(0x1c6)],'configHash':_0x51b72f[_0x23d84d(0x1c3)],'normalizedConfig':_0x51b72f[_0x23d84d(0x1c9)],'backend':{'method':_0x23d84d(0x1d0),'path':INSTANT_API_POLICY_BASE_PATH+_0x23d84d(0x1d5)}},'message':_0x23d84d(0x1d2)+_0x498388['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a113_0x3b98(){const _0x41750f=['4uRiQIk','4410345VsMnDa','158022bXLqGp','11jzlnDj','7146tcQruw','19065GQaXOz','1414839gFDERF','23243810fsWPNK','4384TPvtRa','1215620rdiESh','175wXHxFc'];a113_0x3b98=function(){return _0x41750f;};return a113_0x3b98();}function a113_0x1a76(_0x55d39b,_0x48e185){_0x55d39b=_0x55d39b-0xcb;const _0x3b984f=a113_0x3b98();let _0x1a76d3=_0x3b984f[_0x55d39b];return _0x1a76d3;}(function(_0x18ef0f,_0x2b667f){const _0x2dc9b7=a113_0x1a76,_0x26b4dc=_0x18ef0f();while(!![]){try{const _0x3ec1d3=parseInt(_0x2dc9b7(0xcc))/0x1+-parseInt(_0x2dc9b7(0xd0))/0x2+-parseInt(_0x2dc9b7(0xcd))/0x3*(parseInt(_0x2dc9b7(0xd2))/0x4)+-parseInt(_0x2dc9b7(0xd3))/0x5+parseInt(_0x2dc9b7(0xd4))/0x6*(parseInt(_0x2dc9b7(0xd1))/0x7)+parseInt(_0x2dc9b7(0xcf))/0x8*(-parseInt(_0x2dc9b7(0xcb))/0x9)+parseInt(_0x2dc9b7(0xce))/0xa*(parseInt(_0x2dc9b7(0xd5))/0xb);if(_0x3ec1d3===_0x2b667f)break;else _0x26b4dc['push'](_0x26b4dc['shift']());}catch(_0x3c52d4){_0x26b4dc['push'](_0x26b4dc['shift']());}}}(a113_0x3b98,0x93c53));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|