@lovrabet/rabetbase-cli 2.5.1-beta.6 → 2.5.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.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/auto-sync.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.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/template.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/deployment-sync.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x190ad9=a99_0x1fd0;(function(_0x228f6e,_0x2e4e98){const _0x41409f=a99_0x1fd0,_0x4386e4=_0x228f6e();while(!![]){try{const _0x2a6b2e=-parseInt(_0x41409f(0x14e))/0x1+-parseInt(_0x41409f(0x157))/0x2*(-parseInt(_0x41409f(0x145))/0x3)+parseInt(_0x41409f(0x12d))/0x4*(-parseInt(_0x41409f(0x136))/0x5)+parseInt(_0x41409f(0x151))/0x6+parseInt(_0x41409f(0x153))/0x7*(parseInt(_0x41409f(0x15e))/0x8)+-parseInt(_0x41409f(0x121))/0x9*(-parseInt(_0x41409f(0x127))/0xa)+-parseInt(_0x41409f(0x165))/0xb*(parseInt(_0x41409f(0x117))/0xc);if(_0x2a6b2e===_0x2e4e98)break;else _0x4386e4['push'](_0x4386e4['shift']());}catch(_0x24e6af){_0x4386e4['push'](_0x4386e4['shift']());}}}(a99_0x1a15,0x3f5b3));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a99_0x1fd0(_0x2b8f72,_0x3566a2){_0x2b8f72=_0x2b8f72-0x116;const _0x1a15ef=a99_0x1a15();let _0x1fd01a=_0x1a15ef[_0x2b8f72];return _0x1fd01a;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SYNC_PATH=a99_0x190ad9(0x159),TARGET_ENVS=[a99_0x190ad9(0x129),a99_0x190ad9(0x154),a99_0x190ad9(0x13c),a99_0x190ad9(0x12e)],SYNC_TYPES=[a99_0x190ad9(0x161),a99_0x190ad9(0x147),a99_0x190ad9(0x14a)],DB_ID_FLAG={'name':a99_0x190ad9(0x13d),'type':'number','required':!![],'description':a99_0x190ad9(0x158)},TARGET_ENV_FLAG={'name':a99_0x190ad9(0x11c),'type':'string','enum':[...TARGET_ENVS],'description':a99_0x190ad9(0x167)},DIRECT_FLAG={'name':a99_0x190ad9(0x137),'type':a99_0x190ad9(0x156),'description':'Use\x20the\x20base\x20dblink\x20connection\x20directly,\x20without\x20environment\x20mapping'},TYPE_FLAG={'name':a99_0x190ad9(0x125),'type':'string','required':!![],'enum':[...SYNC_TYPES],'description':a99_0x190ad9(0x166)},CODES_FLAG={'name':'codes','type':a99_0x190ad9(0x12f),'required':!![],'description':'Comma-separated\x20Dataset,\x20Backend\x20Function,\x20or\x20SQL\x20codes\x20(maximum\x20100)'},CONFIRM_FLAG={'name':a99_0x190ad9(0x132),'type':a99_0x190ad9(0x156),'description':a99_0x190ad9(0x143)};export const deploymentSync={'service':a99_0x190ad9(0x12b),'command':'sync','description':a99_0x190ad9(0x14f),'risk':a99_0x190ad9(0x148),'structuredErrors':!![],'confirmationDescription':a99_0x190ad9(0x14d),'flags':[DB_ID_FLAG,TARGET_ENV_FLAG,DIRECT_FLAG,TYPE_FLAG,CODES_FLAG,CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xeda23f){buildSyncPlan(_0xeda23f);},async 'dryRun'(_0x59dead){const _0x352815=a99_0x190ad9,_0x450bea=buildSyncPlan(_0x59dead);return asDryRunResult(buildOutput(_0x450bea,[],!![],_0x352815(0x12c)),{'method':'POST','url':SYNC_PATH,'description':_0x352815(0x149)+_0x450bea['input']['bizCodes'][_0x352815(0x128)]+'\x20'+_0x450bea['input'][_0x352815(0x168)]+_0x352815(0x134)});},async 'execute'(_0x2da54e){const _0xb8b521=a99_0x190ad9,_0x3d2788=buildSyncPlan(_0x2da54e);if(!_0x2da54e[_0xb8b521(0x11b)](_0xb8b521(0x132)))throw CliErrors['validation'](_0xb8b521(0x11f),_0xb8b521(0x14b));let _0x4defa8;try{_0x4defa8=(await syncDeploymentMetadata(_0x3d2788[_0xb8b521(0x13b)]))[_0xb8b521(0x122)];}catch(_0x556108){if(!isPlatformTransportFailure(_0x556108))throw _0x556108;const _0x1117be=new CliError(_0xb8b521(0x14c),0x2,_0xb8b521(0x11d),_0xb8b521(0x131));attachErrorData(_0x1117be,buildOutput(_0x3d2788,[],![],_0xb8b521(0x15a)));throw _0x1117be;}const _0x318c69=_0x4defa8[_0xb8b521(0x135)](_0x5c7522=>_0x5c7522['action']===_0xb8b521(0x162)),_0x4520ac=_0x318c69['length']>0x0?_0xb8b521(0x133):'succeeded',_0x58f224=buildOutput(_0x3d2788,_0x4defa8,![],_0x4520ac);if(_0x318c69['length']>0x0){const _0x59d87=new CliError(_0xb8b521(0x13e),0x1,_0xb8b521(0x140)+_0x318c69[_0xb8b521(0x128)]+'/'+_0x4defa8['length']+_0xb8b521(0x164),_0xb8b521(0x144));attachErrorData(_0x59d87,_0x58f224);throw _0x59d87;}return{'ok':!![],'data':_0x58f224,'message':_0xb8b521(0x11a)+_0x4defa8['length']+_0xb8b521(0x15c)};}};function buildSyncPlan(_0x1e504b){const _0x26ad58=a99_0x190ad9,_0x31198f=_0x1e504b[_0x26ad58(0x11e)](_0x26ad58(0x13d));if(!Number['isSafeInteger'](_0x31198f)||_0x31198f<=0x0)throw CliErrors[_0x26ad58(0x15f)](_0x26ad58(0x126));const _0x4e7bb6=_0x1e504b[_0x26ad58(0x163)]('target-env')[_0x26ad58(0x155)](),_0x2cc1ba=_0x1e504b[_0x26ad58(0x11b)](_0x26ad58(0x137));if(Boolean(_0x4e7bb6)===_0x2cc1ba)throw CliErrors['validation'](_0x26ad58(0x15d));if(_0x4e7bb6&&!TARGET_ENVS['includes'](_0x4e7bb6))throw CliErrors[_0x26ad58(0x15f)](_0x26ad58(0x150)+TARGET_ENVS[_0x26ad58(0x138)](',\x20')+'.');const _0x24189a=_0x1e504b['str']('type')[_0x26ad58(0x155)]();if(!SYNC_TYPES[_0x26ad58(0x139)](_0x24189a))throw CliErrors['validation']('--type\x20must\x20be\x20one\x20of:\x20'+SYNC_TYPES[_0x26ad58(0x138)](',\x20')+'.');const _0x8e99bc=normalizeCodes(_0x1e504b[_0x26ad58(0x163)](_0x26ad58(0x13f)));if(_0x8e99bc[_0x26ad58(0x128)]===0x0)throw CliErrors[_0x26ad58(0x15f)](_0x26ad58(0x15b));if(_0x8e99bc[_0x26ad58(0x128)]>0x64)throw CliErrors[_0x26ad58(0x15f)](_0x26ad58(0x146));const _0x332d5b={'appCode':_0x1e504b['appCode'],'dbLinkId':_0x31198f,..._0x4e7bb6?{'env':_0x4e7bb6}:{},'bizType':_0x24189a,'bizCodes':_0x8e99bc},_0xa66d2a=['Target\x20state\x20is\x20not\x20read\x20back\x20because\x20no\x20target\x20metadata\x20read\x20API\x20is\x20available.',_0x26ad58(0x142)];return _0x24189a===_0x26ad58(0x161)&&_0xa66d2a[_0x26ad58(0x160)](_0x26ad58(0x116)),{'input':_0x332d5b,'selector':{'appCode':_0x1e504b[_0x26ad58(0x118)],'dbLinkId':_0x31198f,'targetMode':_0x4e7bb6?_0x26ad58(0x124):_0x26ad58(0x137),..._0x4e7bb6?{'targetEnv':_0x4e7bb6}:{},'bizType':_0x24189a,'bizCodes':_0x8e99bc},'warnings':_0xa66d2a};}function a99_0x1a15(){const _0x382042=['Do\x20not\x20retry\x20automatically\x20when\x20the\x20request\x20outcome\x20is\x20unknown.','Confirm\x20the\x20target\x20connection\x20and\x20metadata\x20codes','Review\x20data.items\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20before\x20deciding\x20whether\x20to\x20retry\x20failed\x20codes.','774891ddiMGf','--codes\x20supports\x20at\x20most\x20100\x20unique\x20codes.','bff','write','Would\x20synchronize\x20','sql','Run\x20with\x20--dry-run\x20first,\x20verify\x20the\x20target\x20and\x20codes,\x20then\x20add\x20--confirm.','deployment_sync_outcome_unknown','Synchronize\x20selected\x20development\x20metadata\x20into\x20one\x20deployment\x20database\x20connection.','194847yaWLOS','Synchronize\x20selected\x20development\x20metadata\x20to\x20a\x20deployment\x20database','--target-env\x20must\x20be\x20one\x20of:\x20','2993292cyWegE','succeeded','11144pdHZFz','test','trim','boolean','2EoYVYz','Base\x20dblink\x20ID\x20for\x20direct\x20or\x20server-side\x20environment-mapped\x20deployment\x20sync','/smartapi/data-sync/sync','unknown','--codes\x20must\x20contain\x20at\x20least\x20one\x20non-blank\x20code.','\x20deployment\x20metadata\x20item(s).','Choose\x20exactly\x20one\x20target\x20mode:\x20--target-env\x20or\x20--direct.','1992SnWSNO','validation','unshift','dataset','FAILED','str','\x20failed\x20item(s).','473kAHXNP','Metadata\x20type\x20to\x20synchronize','Deployment\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','bizType','POST','Dataset\x20sync\x20may\x20commit\x20the\x20target\x20dblink\x20before\x20item\x20synchronization;\x20that\x20dblink\x20change\x20is\x20not\x20rolled\x20back\x20when\x20later\x20items\x20fail.','136008cNYqZH','appCode','CREATED','Synchronized\x20','bool','target-env','Deployment\x20sync\x20response\x20was\x20unavailable;\x20the\x20target\x20outcome\x20is\x20unknown.','num','--confirm\x20is\x20required\x20to\x20synchronize\x20deployment\x20metadata.','action','9zgRJNa','items','selector','environment','type','--db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','1224710ITFJAF','length','dev','data','deployment','not_submitted','668684LPaXTI','prod','string','map','Inspect\x20the\x20target\x20database\x20before\x20retrying.\x20Do\x20not\x20resubmit\x20automatically.','confirm','partial_failure','\x20item(s).','filter','10eUQJPO','direct','join','includes','bizCodes','input','pre','db-id','deployment_sync_partial_failure','codes','Deployment\x20sync\x20completed\x20with\x20','split'];a99_0x1a15=function(){return _0x382042;};return a99_0x1a15();}function normalizeCodes(_0x5af94a){const _0x2a97c8=a99_0x190ad9;return[...new Set(_0x5af94a[_0x2a97c8(0x141)](',')[_0x2a97c8(0x130)](_0x2c84e5=>_0x2c84e5[_0x2a97c8(0x155)]())[_0x2a97c8(0x135)](Boolean))];}function buildOutput(_0x233b06,_0x374f37,_0x1587a3,_0x499dab){const _0x11efbd=a99_0x190ad9,_0x59353f=_0x499dab===_0x11efbd(0x152)||_0x499dab==='partial_failure',_0x97f5d9=_0x374f37['reduce']((_0x5e1ff9,_0xf3d815)=>{const _0x4c375d=_0x11efbd;return _0x5e1ff9[_0xf3d815[_0x4c375d(0x120)]]=(_0x5e1ff9[_0xf3d815[_0x4c375d(0x120)]]??0x0)+0x1,_0x5e1ff9;},{});return{'operation':'deployment_metadata_sync','selector':_0x233b06[_0x11efbd(0x123)],'before':null,'after':null,'dryRun':_0x1587a3,'backend':{'submitted':_0x499dab!=='not_submitted','method':_0x11efbd(0x169),'path':SYNC_PATH,'outcome':_0x499dab,'body':_0x233b06[_0x11efbd(0x13b)]},'summary':{'requested':_0x233b06[_0x11efbd(0x13b)][_0x11efbd(0x13a)][_0x11efbd(0x128)],'total':_0x59353f?_0x374f37['length']:_0x233b06[_0x11efbd(0x13b)][_0x11efbd(0x13a)][_0x11efbd(0x128)],'created':_0x374f37[_0x11efbd(0x135)](_0x82a776=>_0x82a776[_0x11efbd(0x120)]===_0x11efbd(0x119))[_0x11efbd(0x128)],'updated':_0x374f37[_0x11efbd(0x135)](_0x17affb=>_0x17affb['action']==='UPDATED')[_0x11efbd(0x128)],'failed':_0x374f37[_0x11efbd(0x135)](_0x47b58b=>_0x47b58b['action']===_0x11efbd(0x162))['length'],'byAction':_0x97f5d9},'items':_0x374f37,'verification':{'performed':![],'reason':'target_read_api_unavailable'},'warnings':_0x233b06['warnings']};}function attachErrorData(_0x5d57bf,_0x224c78){const _0x12fc4a=a99_0x190ad9;Object['defineProperty'](_0x5d57bf,_0x12fc4a(0x12a),{'value':_0x224c78,'enumerable':!![]});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100_0x556bb5=a100_0x3132;(function(_0x4ed488,_0x5a332c){const _0x45beca=a100_0x3132,_0xd70392=_0x4ed488();while(!![]){try{const _0x320787=-parseInt(_0x45beca(0x1c3))/0x1+-parseInt(_0x45beca(0x1e7))/0x2*(parseInt(_0x45beca(0x1c8))/0x3)+-parseInt(_0x45beca(0x201))/0x4*(-parseInt(_0x45beca(0x1f4))/0x5)+parseInt(_0x45beca(0x209))/0x6*(-parseInt(_0x45beca(0x1b6))/0x7)+parseInt(_0x45beca(0x1dc))/0x8*(parseInt(_0x45beca(0x1cc))/0x9)+parseInt(_0x45beca(0x1d3))/0xa+-parseInt(_0x45beca(0x1b4))/0xb;if(_0x320787===_0x5a332c)break;else _0xd70392['push'](_0xd70392['shift']());}catch(_0x31147a){_0xd70392['push'](_0xd70392['shift']());}}}(a100_0xbfdd,0xf0728));import a100_0x2f8aa7 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function a100_0x3132(_0xe03f8a,_0x497521){_0xe03f8a=_0xe03f8a-0x191;const _0xbfdd5e=a100_0xbfdd();let _0x31328b=_0xbfdd5e[_0xe03f8a];return _0x31328b;}function describeRegionValue(_0x381f13){const _0x41c35b=a100_0x3132;return typeof _0x381f13===_0x41c35b(0x1a1)?JSON[_0x41c35b(0x1f7)](_0x381f13):'<'+(_0x381f13===null?_0x41c35b(0x20b):typeof _0x381f13)+'>';}async function execute(_0x3a53f7){const _0xb2c5c2=a100_0x3132,_0x38a76c=GIT_COMMIT!==_0xb2c5c2(0x1a2)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xb2c5c2(0x208)](0x0,0xa)+')':VERSION,_0x493227=buildConfigFromFlags({}),_0x33c929=getCookie();let _0x4189f7;try{await initGlobalEnvironment(_0x493227);}catch(_0xc0105a){_0x4189f7=_0xc0105a instanceof Error?_0xc0105a:new Error(String(_0xc0105a));}console[_0xb2c5c2(0x1ad)](),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7[_0xb2c5c2(0x199)](CLI_BIN_NAME+_0xb2c5c2(0x1c6))),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7[_0xb2c5c2(0x1be)]('─'[_0xb2c5c2(0x1f5)](0x32))),console[_0xb2c5c2(0x1ad)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x38a76c),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1b3)+process['platform']+'\x20'+process['arch']);const _0x585c5a=inspectBuiltinSkill();console[_0xb2c5c2(0x1ad)](),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7[_0xb2c5c2(0x199)]('\x20\x20Built-in\x20Skill')),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7['gray']('\x20\x20─'['repeat'](0x1e)));const _0x58b00e=_0x585c5a[_0xb2c5c2(0x1dd)]==='current'?a100_0x2f8aa7[_0xb2c5c2(0x1d0)]('✓\x20'+_0x585c5a[_0xb2c5c2(0x1dd)]):a100_0x2f8aa7[_0xb2c5c2(0x196)]('✗\x20'+_0x585c5a['state']);console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1ce)+_0x58b00e),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1d2)+_0x585c5a['packageVersion']),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1b9)+(_0x585c5a[_0xb2c5c2(0x1fc)]||a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x1d6)))),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x211)+(_0x585c5a[_0xb2c5c2(0x1d9)]||a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x1c2))));if(_0x585c5a['reason'])console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1ac)+_0x585c5a[_0xb2c5c2(0x1e1)]);_0x585c5a[_0xb2c5c2(0x1dd)]!==_0xb2c5c2(0x1c4)&&console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1e6)+_0x585c5a[_0xb2c5c2(0x20d)]);console[_0xb2c5c2(0x1ad)](),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7[_0xb2c5c2(0x199)](_0xb2c5c2(0x19d))),console['log'](a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x1a6)['repeat'](0x1e)));const _0xee1416=getGlobalConfigPath(),_0x4bd1c3=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xee1416||a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x1c2)))),console[_0xb2c5c2(0x1ad)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4bd1c3||a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x1c2)))),console[_0xb2c5c2(0x1ad)](),console['log'](a100_0x2f8aa7[_0xb2c5c2(0x199)](_0xb2c5c2(0x1c9))),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7['gray']('\x20\x20─'[_0xb2c5c2(0x1f5)](0x1e)));const _0x4b5077=(_0x538290,_0x577243)=>{const _0xd02926=_0xb2c5c2;if(!_0x577243){console['log']('\x20\x20'+_0x538290[_0xd02926(0x1bc)](0x11)+'\x20'+a100_0x2f8aa7[_0xd02926(0x1be)](_0xd02926(0x1bb)));return;}const _0x53c562=inspectCliConfigJsonFile(_0x577243);if(_0x53c562[_0xd02926(0x1ab)]==='ok')console[_0xd02926(0x1ad)]('\x20\x20'+_0x538290[_0xd02926(0x1bc)](0x11)+'\x20'+a100_0x2f8aa7[_0xd02926(0x1d0)](_0xd02926(0x1a9)));else{if(_0x53c562[_0xd02926(0x1ab)]==='empty')console[_0xd02926(0x1ad)]('\x20\x20'+_0x538290[_0xd02926(0x1bc)](0x11)+'\x20'+a100_0x2f8aa7[_0xd02926(0x1ae)](_0xd02926(0x204)));else _0x53c562['status']==='missing'?console['log']('\x20\x20'+_0x538290['padEnd'](0x11)+'\x20'+a100_0x2f8aa7[_0xd02926(0x1be)](_0xd02926(0x198))):(console[_0xd02926(0x1ad)]('\x20\x20'+_0x538290[_0xd02926(0x1bc)](0x11)+'\x20'+a100_0x2f8aa7[_0xd02926(0x196)](_0xd02926(0x1ee))),console[_0xd02926(0x1ad)]('\x20\x20'+''[_0xd02926(0x1bc)](0x11)+'\x20'+a100_0x2f8aa7[_0xd02926(0x196)](_0x53c562[_0xd02926(0x19e)])));}};_0x4b5077('Global',_0xee1416),_0x4b5077(_0xb2c5c2(0x1af),_0x4bd1c3);const _0x28cfd8=loadRawConfigLayers(),_0x562676=[{'label':_0xb2c5c2(0x1af),'value':_0x28cfd8[_0xb2c5c2(0x1e3)][_0xb2c5c2(0x1e2)],'present':Object['prototype'][_0xb2c5c2(0x1c0)][_0xb2c5c2(0x1fb)](_0x28cfd8['projectConfig'],_0xb2c5c2(0x1e2)),'repairCommand':CLI_BIN_NAME+_0xb2c5c2(0x20e)},{'label':'Global','value':_0x28cfd8[_0xb2c5c2(0x195)][_0xb2c5c2(0x1e2)],'present':Object[_0xb2c5c2(0x1a3)]['hasOwnProperty'][_0xb2c5c2(0x1fb)](_0x28cfd8[_0xb2c5c2(0x195)],_0xb2c5c2(0x1e2)),'repairCommand':CLI_BIN_NAME+_0xb2c5c2(0x1f2)}][_0xb2c5c2(0x1b1)](_0x39b2d7=>_0x39b2d7[_0xb2c5c2(0x19a)]&&isInvalidLovrabetRegion(_0x39b2d7['value']));if(_0x562676[_0xb2c5c2(0x1d8)]>0x0){console[_0xb2c5c2(0x1ad)](),console['log'](a100_0x2f8aa7[_0xb2c5c2(0x199)](_0xb2c5c2(0x210))),console['log'](a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x1a6)[_0xb2c5c2(0x1f5)](0x1e)));for(const _0xafbf70 of _0x562676){console[_0xb2c5c2(0x1ad)]('\x20\x20'+_0xafbf70['label'][_0xb2c5c2(0x1bc)](0x11)+'\x20'+a100_0x2f8aa7[_0xb2c5c2(0x196)](_0xb2c5c2(0x193)+describeRegionValue(_0xafbf70[_0xb2c5c2(0x1f6)]))),console[_0xb2c5c2(0x1ad)]('\x20\x20'+('Repair\x20'+_0xafbf70[_0xb2c5c2(0x20f)][_0xb2c5c2(0x1df)]()+':')['padEnd'](0x10)+'\x20'+_0xafbf70[_0xb2c5c2(0x20d)]);}}const _0x2ce6ce=[Object[_0xb2c5c2(0x1a3)][_0xb2c5c2(0x1c0)]['call'](_0x28cfd8[_0xb2c5c2(0x195)],_0xb2c5c2(0x1f0))?_0xb2c5c2(0x1d7):null,Object['prototype']['hasOwnProperty'][_0xb2c5c2(0x1fb)](_0x28cfd8['projectConfig'],_0xb2c5c2(0x1f0))?_0xb2c5c2(0x19b):null][_0xb2c5c2(0x1b1)](Boolean);_0x2ce6ce[_0xb2c5c2(0x1d8)]>0x0&&(console['log'](_0xb2c5c2(0x192)+a100_0x2f8aa7[_0xb2c5c2(0x1ae)]('ignored\x20in\x20'+_0x2ce6ce[_0xb2c5c2(0x1db)]('\x20+\x20')+_0xb2c5c2(0x194))),_0x2ce6ce[_0xb2c5c2(0x191)]('project')&&console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1fd)+CLI_BIN_NAME+_0xb2c5c2(0x1a0)),_0x2ce6ce[_0xb2c5c2(0x191)](_0xb2c5c2(0x1d7))&&console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x207)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x5611da=isInvalidLovrabetRegion(_0x493227[_0xb2c5c2(0x1a5)]?.[_0xb2c5c2(0x1e2)]);_0x4189f7&&!_0x5611da&&(console['log'](),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7[_0xb2c5c2(0x199)](_0xb2c5c2(0x1e8))),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7['gray']('\x20\x20─'[_0xb2c5c2(0x1f5)](0x1e))),console[_0xb2c5c2(0x1ad)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a100_0x2f8aa7[_0xb2c5c2(0x196)](_0xb2c5c2(0x19c))),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1ac)+_0x4189f7[_0xb2c5c2(0x19e)]),Object[_0xb2c5c2(0x1a3)][_0xb2c5c2(0x1c0)][_0xb2c5c2(0x1fb)](_0x28cfd8[_0xb2c5c2(0x1e3)],_0xb2c5c2(0x1ed))&&console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1fa)+CLI_BIN_NAME+_0xb2c5c2(0x213)),Object[_0xb2c5c2(0x1a3)][_0xb2c5c2(0x1c0)][_0xb2c5c2(0x1fb)](_0x28cfd8[_0xb2c5c2(0x195)],_0xb2c5c2(0x1ed))&&console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1ff)+CLI_BIN_NAME+_0xb2c5c2(0x1d5)));console[_0xb2c5c2(0x1ad)](),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7[_0xb2c5c2(0x199)](_0xb2c5c2(0x206))),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7['gray']('\x20\x20─'[_0xb2c5c2(0x1f5)](0x1e))),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1cd)+(_0x493227[_0xb2c5c2(0x1b8)]||a100_0x2f8aa7[_0xb2c5c2(0x196)](_0xb2c5c2(0x1de)))),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1c1)+_0x493227[_0xb2c5c2(0x1ca)]),console['log'](_0xb2c5c2(0x1a7)+_0x493227[_0xb2c5c2(0x1e5)]),console[_0xb2c5c2(0x1ad)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x493227[_0xb2c5c2(0x20c)]),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1c5)+(_0x493227[_0xb2c5c2(0x1d4)]||a100_0x2f8aa7['gray']('(none)'))),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1a8)+(_0x493227[_0xb2c5c2(0x203)]||a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x202)))),console[_0xb2c5c2(0x1ad)]('\x20\x20explicitAppName:\x20'+(_0x493227[_0xb2c5c2(0x1eb)]||a100_0x2f8aa7['gray'](_0xb2c5c2(0x202)))),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1b2)+(_0x493227['format']||a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x1fe)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0xb2c5c2(0x1ea)+(_0x493227['pageSize']??a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x1b5)))),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1e0)+_0x493227['riskLevel']),console['log'](_0xb2c5c2(0x1b0)+_0x493227[_0xb2c5c2(0x1aa)]),console[_0xb2c5c2(0x1ad)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x493227['cookie']?a100_0x2f8aa7[_0xb2c5c2(0x1d0)](_0xb2c5c2(0x1f3)+_0x493227['cookie']['length']+')'):_0x33c929?a100_0x2f8aa7[_0xb2c5c2(0x1d0)]('(set\x20via\x20file,\x20length='+_0x33c929[_0xb2c5c2(0x1d8)]+')'):a100_0x2f8aa7[_0xb2c5c2(0x1be)]('(none)')));const _0x5606cd=Object[_0xb2c5c2(0x1f1)](_0x493227[_0xb2c5c2(0x1cb)]);if(_0x5606cd[_0xb2c5c2(0x1d8)]>0x0){console[_0xb2c5c2(0x1ad)](),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7['bold'](_0xb2c5c2(0x200))),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x1a6)[_0xb2c5c2(0x1f5)](0x1e)));for(const _0x46536c of _0x5606cd){const _0x308712=_0x493227['apps'][_0x46536c],_0x1ff7d5=_0x46536c===_0x493227['defaultApp'],_0x3391ec=_0x46536c===_0x493227['currentApp'],_0x140d46=_0x3391ec?a100_0x2f8aa7[_0xb2c5c2(0x1d0)](_0xb2c5c2(0x1c7)):'',_0x3e68b1=_0x1ff7d5?_0xb2c5c2(0x1e9):'';console[_0xb2c5c2(0x1ad)]('\x20\x20'+_0x46536c+_0x3e68b1+_0x140d46),console['log'](_0xb2c5c2(0x1d1)+_0x308712['appcode']);const _0x4eb0e3=buildAppDoctorFields(_0x308712,{'env':_0x493227[_0xb2c5c2(0x1ca)],'apiDir':_0x493227[_0xb2c5c2(0x1a5)][_0xb2c5c2(0x20c)]||DEFAULT_CONFIG_VALUES[_0xb2c5c2(0x20c)],'cookie':_0x493227[_0xb2c5c2(0x197)]||_0x33c929||undefined,'accessKey':_0x493227[_0xb2c5c2(0x212)]});console[_0xb2c5c2(0x1ad)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4eb0e3['env'][_0xb2c5c2(0x1f6)]+'\x20\x20'+a100_0x2f8aa7[_0xb2c5c2(0x1be)]('('+_0x4eb0e3[_0xb2c5c2(0x1ca)][_0xb2c5c2(0x1ec)]+')')),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x205)+_0x4eb0e3['apiDir']['value']+'\x20\x20'+a100_0x2f8aa7['gray']('('+_0x4eb0e3[_0xb2c5c2(0x20c)]['source']+')'));const _0x4c903a=_0x4eb0e3[_0xb2c5c2(0x197)]['value']?a100_0x2f8aa7[_0xb2c5c2(0x1d0)](_0xb2c5c2(0x1f3)+_0x4eb0e3[_0xb2c5c2(0x197)][_0xb2c5c2(0x1f6)]['length']+')'):a100_0x2f8aa7[_0xb2c5c2(0x1be)](_0xb2c5c2(0x202));console[_0xb2c5c2(0x1ad)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x4c903a+'\x20\x20'+a100_0x2f8aa7[_0xb2c5c2(0x1be)]('('+_0x4eb0e3['cookie'][_0xb2c5c2(0x1ec)]+')'));const _0x42b8b9=_0x4eb0e3[_0xb2c5c2(0x212)][_0xb2c5c2(0x1f6)]?a100_0x2f8aa7[_0xb2c5c2(0x1d0)](_0xb2c5c2(0x1f3)+_0x4eb0e3[_0xb2c5c2(0x212)][_0xb2c5c2(0x1f6)][_0xb2c5c2(0x1d8)]+')'):a100_0x2f8aa7['gray'](_0xb2c5c2(0x202));console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1bf)+_0x42b8b9+'\x20\x20'+a100_0x2f8aa7[_0xb2c5c2(0x1be)]('('+_0x4eb0e3[_0xb2c5c2(0x212)][_0xb2c5c2(0x1ec)]+')'));}}console['log'](),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7[_0xb2c5c2(0x199)]('\x20\x20API\x20Endpoints')),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7[_0xb2c5c2(0x1be)]('\x20\x20─'['repeat'](0x1e)));_0x4189f7?console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1b7)+a100_0x2f8aa7[_0xb2c5c2(0x196)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0xb2c5c2(0x1ad)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0xb2c5c2(0x1ad)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1da)+getRuntimeDomain()),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1f8)+getSkillDomain()),console['log'](_0xb2c5c2(0x19f)+getKbDomain()),console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1a4)+getAppDomain()));console[_0xb2c5c2(0x1ad)](),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7[_0xb2c5c2(0x199)](_0xb2c5c2(0x1ba))),console[_0xb2c5c2(0x1ad)](a100_0x2f8aa7['gray']('\x20\x20─'[_0xb2c5c2(0x1f5)](0x1e)));if(_0x4189f7)console[_0xb2c5c2(0x1ad)](_0xb2c5c2(0x1b7)+a100_0x2f8aa7['yellow']('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x33c929){const _0xc00f9c=await getIsSessionValid();console['log'](_0xb2c5c2(0x1b7)+(_0xc00f9c?a100_0x2f8aa7[_0xb2c5c2(0x1d0)](_0xb2c5c2(0x1e4)):a100_0x2f8aa7[_0xb2c5c2(0x196)](_0xb2c5c2(0x1ef))));}else console['log'](_0xb2c5c2(0x1b7)+a100_0x2f8aa7[_0xb2c5c2(0x196)](_0xb2c5c2(0x1cf)));}return console[_0xb2c5c2(0x1ad)](),{'ok':!![]};}function a100_0xbfdd(){const _0x1f45f7=['bold','present','project','✗\x20Invalid','\x20\x20Config\x20Files','message','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit','string','unknown','prototype','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','raw','\x20\x20─','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','verbose','status','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','yellow','Project','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','6341797UPAOUw','(default)','90139pXSzDy','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appCode','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Auth','(no\x20file)','padEnd','check','gray','\x20\x20\x20\x20accessKey:\x20\x20','hasOwnProperty','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','1119068ZprxZY','current','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20doctor','\x20←\x20current','39OZzvpE','\x20\x20Config\x20JSON','env','apps','1485xPgJkD','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','green','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','9489540haMFwL','defaultApp','\x20config\x20delete\x20routing\x20--global','(unknown)','global','length','installedPath','\x20\x20runtimeDomain:\x20\x20\x20','join','94248vIIJvX','state','(not\x20set)','toLowerCase','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','reason','region','projectConfig','✓\x20Valid','locale','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','234242PEpwWo','\x20\x20Routing\x20Configuration','\x20(default)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','source','routing','✗\x20Invalid\x20JSON','✗\x20Expired','inherit','keys','\x20config\x20delete\x20region\x20--global','(set,\x20length=','5AwoGbS','repeat','value','stringify','\x20\x20skillDomain:\x20\x20\x20\x20\x20','doctor','\x20\x20Repair\x20project:\x20\x20','call','skillVersion','\x20\x20Repair\x20project:\x20\x20\x20','(default:\x20','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Apps','5755964yPxoxE','(none)','currentApp','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20Repair\x20global:\x20\x20\x20\x20','slice','60ORJpaK','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','null','apiDir','repairCommand','\x20config\x20delete\x20region','label','\x20\x20Country/Region\x20Configuration','\x20\x20Installed\x20Path:\x20\x20','accessKey','\x20config\x20delete\x20routing','includes','\x20\x20Legacy\x20inherit:\x20\x20\x20','✗\x20Invalid\x20','\x20config','globalConfig','red','cookie','(missing)'];a100_0xbfdd=function(){return _0x1f45f7;};return a100_0xbfdd();}export const doctorDefinition={'service':a100_0x556bb5(0x1f9),'command':a100_0x556bb5(0x1bd),'description':a100_0x556bb5(0x20a),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a100_0x194f45=a100_0x52bb;(function(_0x5ee7e2,_0x595879){const _0x35bf64=a100_0x52bb,_0x1a9faa=_0x5ee7e2();while(!![]){try{const _0x1dc0cb=-parseInt(_0x35bf64(0x111))/0x1*(parseInt(_0x35bf64(0x17e))/0x2)+-parseInt(_0x35bf64(0x169))/0x3*(-parseInt(_0x35bf64(0x14f))/0x4)+parseInt(_0x35bf64(0x156))/0x5+parseInt(_0x35bf64(0x181))/0x6*(parseInt(_0x35bf64(0x132))/0x7)+-parseInt(_0x35bf64(0x158))/0x8*(-parseInt(_0x35bf64(0x173))/0x9)+-parseInt(_0x35bf64(0x180))/0xa+parseInt(_0x35bf64(0x18d))/0xb*(-parseInt(_0x35bf64(0x190))/0xc);if(_0x1dc0cb===_0x595879)break;else _0x1a9faa['push'](_0x1a9faa['shift']());}catch(_0x2430a4){_0x1a9faa['push'](_0x1a9faa['shift']());}}}(a100_0x4d11,0xca8f0));import a100_0x2a8d8d from'chalk';function a100_0x4d11(){const _0x508468=['\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','Global','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4hqLGuR','accessKey','slice','\x20config\x20delete\x20inherit','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','env','missing','694955Jusojd','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','8tIMLoA','globalConfig','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','currentApp','(unknown)','yellow','repeat','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','join','read','(missing)','skillVersion','(set,\x20length=','project','pageSize','\x20\x20\x20\x20accessKey:\x20\x20','4636344rWlnhO','length','log','\x20\x20─','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','verbose','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','padEnd','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','4615938IQgXpO','⚠\x20Empty\x20(treated\x20as\x20{})','packageVersion','raw','reason','cookie','(not\x20set)','\x20\x20Config\x20Files','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1690Jstlch','\x20doctor','8294850FtJMuc','78xNovHj','\x20config\x20delete\x20region\x20--global','✓\x20Valid','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','defaultApp','prototype','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','arch','source','format','22DJYYRz','riskLevel','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','1440396KFJxdn','inherit','\x20config\x20delete\x20region','\x20\x20Package\x20Version:\x20','null','\x20\x20Routing\x20Configuration','\x20\x20skillDomain:\x20\x20\x20\x20\x20','733AyaVjb','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','explicitAppName','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(no\x20file)','projectConfig','green','✗\x20Invalid\x20JSON','call','red','includes','gray','label','\x20(default)','apps','hasOwnProperty','(default)','doctor','repairCommand','\x20config','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','filter','status','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','region','\x20\x20Merged\x20Config','value','message','✗\x20Invalid\x20','\x20\x20API\x20Endpoints','routing','173005JGvIzT','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','(not\x20found)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','bold','toLowerCase','\x20\x20Skill\x20Version:\x20\x20\x20','installedPath','platform','empty','✗\x20Not\x20logged\x20in','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','(set\x20via\x20file,\x20length=','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','(none)','\x20+\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'];a100_0x4d11=function(){return _0x508468;};return a100_0x4d11();}function a100_0x52bb(_0x577333,_0x3e1122){_0x577333=_0x577333-0x10e;const _0x4d11b5=a100_0x4d11();let _0x52bbed=_0x4d11b5[_0x577333];return _0x52bbed;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x58508b){const _0x79b7e6=a100_0x52bb;return typeof _0x58508b==='string'?JSON['stringify'](_0x58508b):'<'+(_0x58508b===null?_0x79b7e6(0x10e):typeof _0x58508b)+'>';}async function execute(_0x2140df){const _0x12e7fc=a100_0x52bb,_0x7359ae=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x12e7fc(0x151)](0x0,0xa)+')':VERSION,_0x22c104=buildConfigFromFlags({}),_0x28ee1c=getCookie();let _0xdeab12;try{await initGlobalEnvironment(_0x22c104);}catch(_0x1184b3){_0xdeab12=_0x1184b3 instanceof Error?_0x1184b3:new Error(String(_0x1184b3));}console[_0x12e7fc(0x16b)](),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x137)](CLI_BIN_NAME+_0x12e7fc(0x17f))),console['log'](a100_0x2a8d8d[_0x12e7fc(0x11e)]('─'[_0x12e7fc(0x15e)](0x32))),console[_0x12e7fc(0x16b)](_0x12e7fc(0x15a)+_0x7359ae),console[_0x12e7fc(0x16b)](_0x12e7fc(0x16f)+process[_0x12e7fc(0x185)]),console[_0x12e7fc(0x16b)](_0x12e7fc(0x18f)+process[_0x12e7fc(0x13b)]+'\x20'+process[_0x12e7fc(0x18a)]);const _0xfd234c=inspectBuiltinSkill();console[_0x12e7fc(0x16b)](),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x137)](_0x12e7fc(0x113))),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x11e)]('\x20\x20─'[_0x12e7fc(0x15e)](0x1e)));const _0x1a8fb6=_0xfd234c['state']==='current'?a100_0x2a8d8d[_0x12e7fc(0x119)]('✓\x20'+_0xfd234c[_0x12e7fc(0x14b)]):a100_0x2a8d8d[_0x12e7fc(0x11c)]('✗\x20'+_0xfd234c[_0x12e7fc(0x14b)]);console[_0x12e7fc(0x16b)](_0x12e7fc(0x184)+_0x1a8fb6),console['log'](_0x12e7fc(0x193)+_0xfd234c[_0x12e7fc(0x175)]),console[_0x12e7fc(0x16b)](_0x12e7fc(0x139)+(_0xfd234c[_0x12e7fc(0x164)]||a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x15c)))),console[_0x12e7fc(0x16b)]('\x20\x20Installed\x20Path:\x20\x20'+(_0xfd234c[_0x12e7fc(0x13a)]||a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x135))));if(_0xfd234c[_0x12e7fc(0x177)])console[_0x12e7fc(0x16b)](_0x12e7fc(0x115)+_0xfd234c[_0x12e7fc(0x177)]);_0xfd234c[_0x12e7fc(0x14b)]!=='current'&&console[_0x12e7fc(0x16b)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xfd234c[_0x12e7fc(0x125)]);console[_0x12e7fc(0x16b)](),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x137)](_0x12e7fc(0x17a))),console['log'](a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x16c)[_0x12e7fc(0x15e)](0x1e)));const _0x5596ea=getGlobalConfigPath(),_0x517c57=getProjectConfigPath();console[_0x12e7fc(0x16b)](_0x12e7fc(0x17d)+(_0x5596ea||a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x135)))),console['log'](_0x12e7fc(0x147)+(_0x517c57||a100_0x2a8d8d[_0x12e7fc(0x11e)]('(not\x20found)'))),console['log'](),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x137)]('\x20\x20Config\x20JSON')),console[_0x12e7fc(0x16b)](a100_0x2a8d8d['gray']('\x20\x20─'[_0x12e7fc(0x15e)](0x1e)));const _0x5c3876=(_0x223bc1,_0x92d527)=>{const _0x11ed97=_0x12e7fc;if(!_0x92d527){console['log']('\x20\x20'+_0x223bc1[_0x11ed97(0x171)](0x11)+'\x20'+a100_0x2a8d8d[_0x11ed97(0x11e)](_0x11ed97(0x117)));return;}const _0x276edc=inspectCliConfigJsonFile(_0x92d527);if(_0x276edc['status']==='ok')console['log']('\x20\x20'+_0x223bc1[_0x11ed97(0x171)](0x11)+'\x20'+a100_0x2a8d8d[_0x11ed97(0x119)](_0x11ed97(0x13f)));else{if(_0x276edc[_0x11ed97(0x129)]===_0x11ed97(0x13c))console[_0x11ed97(0x16b)]('\x20\x20'+_0x223bc1[_0x11ed97(0x171)](0x11)+'\x20'+a100_0x2a8d8d[_0x11ed97(0x15d)](_0x11ed97(0x174)));else _0x276edc['status']===_0x11ed97(0x155)?console[_0x11ed97(0x16b)]('\x20\x20'+_0x223bc1['padEnd'](0x11)+'\x20'+a100_0x2a8d8d[_0x11ed97(0x11e)](_0x11ed97(0x163))):(console[_0x11ed97(0x16b)]('\x20\x20'+_0x223bc1['padEnd'](0x11)+'\x20'+a100_0x2a8d8d[_0x11ed97(0x11c)](_0x11ed97(0x11a))),console[_0x11ed97(0x16b)]('\x20\x20'+''[_0x11ed97(0x171)](0x11)+'\x20'+a100_0x2a8d8d['red'](_0x276edc[_0x11ed97(0x12e)])));}};_0x5c3876(_0x12e7fc(0x14d),_0x5596ea),_0x5c3876('Project',_0x517c57);const _0x377a6a=loadRawConfigLayers(),_0x38c11f=[{'label':_0x12e7fc(0x148),'value':_0x377a6a[_0x12e7fc(0x118)]['region'],'present':Object[_0x12e7fc(0x187)][_0x12e7fc(0x122)][_0x12e7fc(0x11b)](_0x377a6a[_0x12e7fc(0x118)],_0x12e7fc(0x12b)),'repairCommand':CLI_BIN_NAME+_0x12e7fc(0x192)},{'label':_0x12e7fc(0x14d),'value':_0x377a6a[_0x12e7fc(0x159)][_0x12e7fc(0x12b)],'present':Object[_0x12e7fc(0x187)][_0x12e7fc(0x122)][_0x12e7fc(0x11b)](_0x377a6a[_0x12e7fc(0x159)],_0x12e7fc(0x12b)),'repairCommand':CLI_BIN_NAME+_0x12e7fc(0x182)}][_0x12e7fc(0x128)](_0x2bcd8a=>_0x2bcd8a['present']&&isInvalidLovrabetRegion(_0x2bcd8a[_0x12e7fc(0x12d)]));if(_0x38c11f['length']>0x0){console[_0x12e7fc(0x16b)](),console['log'](a100_0x2a8d8d[_0x12e7fc(0x137)](_0x12e7fc(0x189))),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x16c)[_0x12e7fc(0x15e)](0x1e)));for(const _0x1ca2b2 of _0x38c11f){console[_0x12e7fc(0x16b)]('\x20\x20'+_0x1ca2b2['label'][_0x12e7fc(0x171)](0x11)+'\x20'+a100_0x2a8d8d[_0x12e7fc(0x11c)](_0x12e7fc(0x12f)+describeRegionValue(_0x1ca2b2[_0x12e7fc(0x12d)]))),console[_0x12e7fc(0x16b)]('\x20\x20'+('Repair\x20'+_0x1ca2b2[_0x12e7fc(0x11f)][_0x12e7fc(0x138)]()+':')['padEnd'](0x10)+'\x20'+_0x1ca2b2['repairCommand']);}}const _0x18b728=[Object[_0x12e7fc(0x187)][_0x12e7fc(0x122)][_0x12e7fc(0x11b)](_0x377a6a[_0x12e7fc(0x159)],_0x12e7fc(0x191))?'global':null,Object[_0x12e7fc(0x187)][_0x12e7fc(0x122)][_0x12e7fc(0x11b)](_0x377a6a[_0x12e7fc(0x118)],_0x12e7fc(0x191))?_0x12e7fc(0x166):null][_0x12e7fc(0x128)](Boolean);_0x18b728['length']>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a100_0x2a8d8d[_0x12e7fc(0x15d)]('ignored\x20in\x20'+_0x18b728[_0x12e7fc(0x161)](_0x12e7fc(0x145))+_0x12e7fc(0x126))),_0x18b728['includes'](_0x12e7fc(0x166))&&console['log'](_0x12e7fc(0x134)+CLI_BIN_NAME+_0x12e7fc(0x152)),_0x18b728[_0x12e7fc(0x11d)]('global')&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x1dfd48=isInvalidLovrabetRegion(_0x22c104[_0x12e7fc(0x176)]?.['region']);_0xdeab12&&!_0x1dfd48&&(console[_0x12e7fc(0x16b)](),console['log'](a100_0x2a8d8d[_0x12e7fc(0x137)](_0x12e7fc(0x10f))),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x16c)[_0x12e7fc(0x15e)](0x1e))),console[_0x12e7fc(0x16b)](_0x12e7fc(0x188)+a100_0x2a8d8d[_0x12e7fc(0x11c)]('✗\x20Invalid')),console[_0x12e7fc(0x16b)](_0x12e7fc(0x115)+_0xdeab12[_0x12e7fc(0x12e)]),Object['prototype'][_0x12e7fc(0x122)][_0x12e7fc(0x11b)](_0x377a6a[_0x12e7fc(0x118)],_0x12e7fc(0x131))&&console['log']('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x12e7fc(0x187)]['hasOwnProperty'][_0x12e7fc(0x11b)](_0x377a6a['globalConfig'],_0x12e7fc(0x131))&&console[_0x12e7fc(0x16b)](_0x12e7fc(0x133)+CLI_BIN_NAME+_0x12e7fc(0x170)));console['log'](),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x137)](_0x12e7fc(0x12c))),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x16c)[_0x12e7fc(0x15e)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x22c104['appCode']||a100_0x2a8d8d[_0x12e7fc(0x11c)](_0x12e7fc(0x179)))),console[_0x12e7fc(0x16b)](_0x12e7fc(0x15f)+_0x22c104[_0x12e7fc(0x154)]),console[_0x12e7fc(0x16b)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x22c104['locale']),console[_0x12e7fc(0x16b)](_0x12e7fc(0x17b)+_0x22c104[_0x12e7fc(0x143)]),console[_0x12e7fc(0x16b)](_0x12e7fc(0x13e)+(_0x22c104[_0x12e7fc(0x186)]||a100_0x2a8d8d['gray'](_0x12e7fc(0x144)))),console[_0x12e7fc(0x16b)](_0x12e7fc(0x127)+(_0x22c104['currentApp']||a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x144)))),console[_0x12e7fc(0x16b)]('\x20\x20explicitAppName:\x20'+(_0x22c104[_0x12e7fc(0x114)]||a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x144)))),console[_0x12e7fc(0x16b)](_0x12e7fc(0x14e)+(_0x22c104[_0x12e7fc(0x18c)]||a100_0x2a8d8d[_0x12e7fc(0x11e)]('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x12e7fc(0x16b)](_0x12e7fc(0x157)+(_0x22c104[_0x12e7fc(0x167)]??a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x123)))),console[_0x12e7fc(0x16b)](_0x12e7fc(0x172)+_0x22c104[_0x12e7fc(0x18e)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x22c104[_0x12e7fc(0x16e)]),console[_0x12e7fc(0x16b)](_0x12e7fc(0x14a)+(_0x22c104[_0x12e7fc(0x178)]?a100_0x2a8d8d['green'](_0x12e7fc(0x165)+_0x22c104[_0x12e7fc(0x178)][_0x12e7fc(0x16a)]+')'):_0x28ee1c?a100_0x2a8d8d[_0x12e7fc(0x119)](_0x12e7fc(0x140)+_0x28ee1c[_0x12e7fc(0x16a)]+')'):a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x144))));const _0x518fce=Object['keys'](_0x22c104[_0x12e7fc(0x121)]);if(_0x518fce[_0x12e7fc(0x16a)]>0x0){console[_0x12e7fc(0x16b)](),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x137)]('\x20\x20Apps')),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x16c)[_0x12e7fc(0x15e)](0x1e)));for(const _0x36de68 of _0x518fce){const _0xfa53b5=_0x22c104[_0x12e7fc(0x121)][_0x36de68],_0x36520c=_0x36de68===_0x22c104[_0x12e7fc(0x186)],_0x4b9c09=_0x36de68===_0x22c104[_0x12e7fc(0x15b)],_0x178450=_0x4b9c09?a100_0x2a8d8d[_0x12e7fc(0x119)]('\x20←\x20current'):'',_0x3751cd=_0x36520c?_0x12e7fc(0x120):'';console[_0x12e7fc(0x16b)]('\x20\x20'+_0x36de68+_0x3751cd+_0x178450),console[_0x12e7fc(0x16b)](_0x12e7fc(0x146)+_0xfa53b5[_0x12e7fc(0x17c)]);const _0x18b8a6=buildAppDoctorFields(_0xfa53b5,{'env':_0x22c104['env'],'apiDir':_0x22c104[_0x12e7fc(0x176)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x12e7fc(0x143)],'cookie':_0x22c104[_0x12e7fc(0x178)]||_0x28ee1c||undefined,'accessKey':_0x22c104[_0x12e7fc(0x150)]});console[_0x12e7fc(0x16b)](_0x12e7fc(0x149)+_0x18b8a6['env'][_0x12e7fc(0x12d)]+'\x20\x20'+a100_0x2a8d8d[_0x12e7fc(0x11e)]('('+_0x18b8a6[_0x12e7fc(0x154)][_0x12e7fc(0x18b)]+')')),console[_0x12e7fc(0x16b)](_0x12e7fc(0x116)+_0x18b8a6[_0x12e7fc(0x143)][_0x12e7fc(0x12d)]+'\x20\x20'+a100_0x2a8d8d['gray']('('+_0x18b8a6['apiDir'][_0x12e7fc(0x18b)]+')'));const _0x4d3cee=_0x18b8a6[_0x12e7fc(0x178)][_0x12e7fc(0x12d)]?a100_0x2a8d8d[_0x12e7fc(0x119)](_0x12e7fc(0x165)+_0x18b8a6['cookie'][_0x12e7fc(0x12d)]['length']+')'):a100_0x2a8d8d[_0x12e7fc(0x11e)]('(none)');console[_0x12e7fc(0x16b)](_0x12e7fc(0x16d)+_0x4d3cee+'\x20\x20'+a100_0x2a8d8d[_0x12e7fc(0x11e)]('('+_0x18b8a6[_0x12e7fc(0x178)][_0x12e7fc(0x18b)]+')'));const _0x18ce2d=_0x18b8a6[_0x12e7fc(0x150)]['value']?a100_0x2a8d8d[_0x12e7fc(0x119)](_0x12e7fc(0x165)+_0x18b8a6['accessKey'][_0x12e7fc(0x12d)][_0x12e7fc(0x16a)]+')'):a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x144));console['log'](_0x12e7fc(0x168)+_0x18ce2d+'\x20\x20'+a100_0x2a8d8d[_0x12e7fc(0x11e)]('('+_0x18b8a6[_0x12e7fc(0x150)][_0x12e7fc(0x18b)]+')'));}}console[_0x12e7fc(0x16b)](),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x137)](_0x12e7fc(0x130))),console[_0x12e7fc(0x16b)](a100_0x2a8d8d[_0x12e7fc(0x11e)](_0x12e7fc(0x16c)[_0x12e7fc(0x15e)](0x1e)));_0xdeab12?console[_0x12e7fc(0x16b)](_0x12e7fc(0x188)+a100_0x2a8d8d[_0x12e7fc(0x11c)](_0x12e7fc(0x153))):(console[_0x12e7fc(0x16b)](_0x12e7fc(0x112)+getActiveRegion()),console['log'](_0x12e7fc(0x12a)+getApiDomain()),console[_0x12e7fc(0x16b)](_0x12e7fc(0x136)+getUserDomain()),console[_0x12e7fc(0x16b)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x12e7fc(0x16b)](_0x12e7fc(0x110)+getSkillDomain()),console['log'](_0x12e7fc(0x142)+getKbDomain()),console['log'](_0x12e7fc(0x141)+getAppDomain()));console[_0x12e7fc(0x16b)](),console['log'](a100_0x2a8d8d['bold']('\x20\x20Auth')),console[_0x12e7fc(0x16b)](a100_0x2a8d8d['gray']('\x20\x20─'['repeat'](0x1e)));if(_0xdeab12)console['log'](_0x12e7fc(0x188)+a100_0x2a8d8d[_0x12e7fc(0x15d)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x28ee1c){const _0x4e42cb=await getIsSessionValid();console[_0x12e7fc(0x16b)](_0x12e7fc(0x188)+(_0x4e42cb?a100_0x2a8d8d['green'](_0x12e7fc(0x183)):a100_0x2a8d8d[_0x12e7fc(0x11c)](_0x12e7fc(0x160))));}else console[_0x12e7fc(0x16b)](_0x12e7fc(0x188)+a100_0x2a8d8d[_0x12e7fc(0x11c)](_0x12e7fc(0x13d)));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a100_0x194f45(0x124),'command':'check','description':a100_0x194f45(0x14c),'risk':a100_0x194f45(0x162),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x3c7ecb=a101_0x2f0f;(function(_0x482227,_0x2019e7){const _0x53a178=a101_0x2f0f,_0x518244=_0x482227();while(!![]){try{const _0x166c7a=-parseInt(_0x53a178(0x12e))/0x1+-parseInt(_0x53a178(0x12b))/0x2+-parseInt(_0x53a178(0x135))/0x3*(-parseInt(_0x53a178(0x13d))/0x4)+-parseInt(_0x53a178(0x146))/0x5+-parseInt(_0x53a178(0x138))/0x6+parseInt(_0x53a178(0x13a))/0x7+parseInt(_0x53a178(0x145))/0x8*(parseInt(_0x53a178(0x134))/0x9);if(_0x166c7a===_0x2019e7)break;else _0x518244['push'](_0x518244['shift']());}catch(_0x2e7d1d){_0x518244['push'](_0x518244['shift']());}}}(a101_0x421b,0x515f5));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a101_0x2f0f(_0x298fde,_0x149027){_0x298fde=_0x298fde-0x12b;const _0x421b5a=a101_0x421b();let _0x2f0f49=_0x421b5a[_0x298fde];return _0x2f0f49;}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a101_0x3c7ecb(0x13c),'type':'string','required':!![],'description':a101_0x3c7ecb(0x13f)},FILEPATH_FLAG={'name':a101_0x3c7ecb(0x133),'type':a101_0x3c7ecb(0x141),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a101_0x3c7ecb(0x12c),'type':'boolean','description':a101_0x3c7ecb(0x149)},LONG_TERM_FLAG={'name':a101_0x3c7ecb(0x14a),'type':a101_0x3c7ecb(0x147),'description':a101_0x3c7ecb(0x143)};function requireFilePath(_0x1117ea){const _0x178f3f=a101_0x3c7ecb,_0x3014ca=_0x1117ea['trim']();if(!_0x3014ca)throw CliErrors[_0x178f3f(0x14b)](_0x178f3f(0x139));return _0x3014ca;}const fileUpload={'service':'file','command':a101_0x3c7ecb(0x144),'description':a101_0x3c7ecb(0x137),'risk':a101_0x3c7ecb(0x12d),'flags':[FILE_FLAG],async 'dryRun'(_0x59673e){const _0xe99d76=a101_0x3c7ecb,_0x1854dc=requireDevelopmentUploadFile(_0x59673e['str'](_0xe99d76(0x13c)),_0xe99d76(0x13b));return{'method':'POST','url':'/smartapi/common/uploadFile','body':{'appCode':_0x59673e[_0xe99d76(0x13e)],'multipart':{'file':_0x1854dc}},'description':_0xe99d76(0x140)+_0x1854dc[_0xe99d76(0x130)]+'\x20to\x20development\x20app\x20'+_0x59673e[_0xe99d76(0x13e)]};},async 'execute'(_0x5e00e4){const _0x26551f=a101_0x3c7ecb,_0x549e6e=requireDevelopmentUploadFile(_0x5e00e4[_0x26551f(0x148)](_0x26551f(0x13c)),'File'),_0xbde06e=await uploadDevelopmentFile(_0x5e00e4[_0x26551f(0x13e)],_0x549e6e[_0x26551f(0x130)]);return{'ok':!![],'data':_0xbde06e,'message':_0xbde06e[_0x26551f(0x136)]?_0x26551f(0x132)+_0xbde06e[_0x26551f(0x136)]+_0x26551f(0x12f):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a101_0x3c7ecb(0x13c),'command':'query-url','description':a101_0x3c7ecb(0x131),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x2e945e){const _0x4e5121=a101_0x3c7ecb,_0x22d260=requireFilePath(_0x2e945e['str'](_0x4e5121(0x133))),_0x1685cc=await queryDevelopmentFileUrl(_0x22d260,{'download':_0x2e945e[_0x4e5121(0x142)](_0x4e5121(0x12c)),'longTerm':_0x2e945e[_0x4e5121(0x142)](_0x4e5121(0x14a))});return{'ok':!![],'data':_0x1685cc};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a101_0x421b(){const _0x978b54=['boolean','str','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','long-term','validation','962362FEzhHC','download','read','200600NfQvfU','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','path','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','Uploaded\x20file:\x20','filepath','918HQaCEY','1251iZeeXh','filePath','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','3359622hyVPmW','filePath\x20is\x20required.','4136377VCFCVc','File','file','2384TtBfkI','appCode','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Preview:\x20upload\x20','string','bool','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','upload','64632QLPMSa','442410nxCHKR'];a101_0x421b=function(){return _0x978b54;};return a101_0x421b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a102_0xd20a(_0x501a3b,_0x2d32db){_0x501a3b=_0x501a3b-0x10b;const _0x170e44=a102_0x170e();let _0xd20a50=_0x170e44[_0x501a3b];return _0xd20a50;}function a102_0x170e(){const _0x38f54f=['15514741PDcNyG','2623608xBvOIx','1933260sPvykB','3452016FtMpjs','122296cOdICK','511dKenXX','372978izQNce','5xwJUww','2MLBBeN','1182731MJTTeZ','70BmEewN'];a102_0x170e=function(){return _0x38f54f;};return a102_0x170e();}(function(_0x154159,_0x69f342){const _0x53530b=a102_0xd20a,_0x20a3b7=_0x154159();while(!![]){try{const _0x41fccf=parseInt(_0x53530b(0x10f))/0x1*(-parseInt(_0x53530b(0x10e))/0x2)+-parseInt(_0x53530b(0x112))/0x3+parseInt(_0x53530b(0x114))/0x4+-parseInt(_0x53530b(0x10d))/0x5*(parseInt(_0x53530b(0x113))/0x6)+-parseInt(_0x53530b(0x10b))/0x7*(-parseInt(_0x53530b(0x115))/0x8)+parseInt(_0x53530b(0x10c))/0x9*(-parseInt(_0x53530b(0x110))/0xa)+parseInt(_0x53530b(0x111))/0xb;if(_0x41fccf===_0x69f342)break;else _0x20a3b7['push'](_0x20a3b7['shift']());}catch(_0x415247){_0x20a3b7['push'](_0x20a3b7['shift']());}}}(a102_0x170e,0xafbc7));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103_0x221e4f=a103_0x3b23;(function(_0x145553,_0x3e6b92){const _0x525bf2=a103_0x3b23,_0x5b98c4=_0x145553();while(!![]){try{const _0x1d15e4=parseInt(_0x525bf2(0x20f))/0x1+-parseInt(_0x525bf2(0x1f5))/0x2+-parseInt(_0x525bf2(0x200))/0x3+-parseInt(_0x525bf2(0x20c))/0x4*(-parseInt(_0x525bf2(0x211))/0x5)+-parseInt(_0x525bf2(0x1f7))/0x6*(parseInt(_0x525bf2(0x201))/0x7)+-parseInt(_0x525bf2(0x205))/0x8*(parseInt(_0x525bf2(0x213))/0x9)+parseInt(_0x525bf2(0x1fc))/0xa*(parseInt(_0x525bf2(0x216))/0xb);if(_0x1d15e4===_0x3e6b92)break;else _0x5b98c4['push'](_0x5b98c4['shift']());}catch(_0x3541b0){_0x5b98c4['push'](_0x5b98c4['shift']());}}}(a103_0x2ce4,0x7f327));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a103_0x221e4f(0x1fb);function a103_0x3b23(_0x3b9371,_0x366c9d){_0x3b9371=_0x3b9371-0x1f2;const _0x2ce43c=a103_0x2ce4();let _0x3b2307=_0x2ce43c[_0x3b9371];return _0x3b2307;}const NUDGE_SUPPRESSED_CODES=new Set([a103_0x221e4f(0x202),a103_0x221e4f(0x209),a103_0x221e4f(0x20d),a103_0x221e4f(0x1fa),a103_0x221e4f(0x1f6),a103_0x221e4f(0x20e),a103_0x221e4f(0x203),'network_error']),defaultWriter=_0x58761c=>{const _0x3896dc=a103_0x221e4f;process[_0x3896dc(0x215)]['write'](_0x58761c);};export function shouldNudgeForError(_0x2f917e,_0x61c233){const _0xdf89b=a103_0x221e4f;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x61c233['service']==='issue'&&_0x61c233[_0xdf89b(0x1f9)]===_0xdf89b(0x1fd))return![];if(_0x2f917e instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x2f917e[_0xdf89b(0x212)]);return!![];}export function printIssueReportNudgeForError(_0xc9e3e2,_0x489f3d,_0x214cdc=defaultWriter){if(!shouldNudgeForError(_0xc9e3e2,_0x489f3d))return;const _0x37755d=buildSuggestedTitle(_0xc9e3e2,_0x489f3d);_0x214cdc(formatNudge(_0x37755d));}function buildSuggestedTitle(_0x2e0495,_0xdadc99){const _0x45e596=a103_0x221e4f,_0x164840=_0x2e0495 instanceof Error?_0x2e0495['message']:String(_0x2e0495),_0x4c406d=_0x164840['replace'](/[\r\n]+/g,'\x20')[_0x45e596(0x1f2)](/\s+/g,'\x20')[_0x45e596(0x214)]()[_0x45e596(0x206)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x49c581=CLI_BIN_NAME+'\x20'+_0xdadc99['service']+'\x20'+_0xdadc99[_0x45e596(0x1f9)];return _0x4c406d[_0x45e596(0x1ff)]>0x0?_0x49c581+':\x20'+_0x4c406d:_0x49c581;}function formatNudge(_0x46e1dc){const _0x548d25=a103_0x221e4f;return['',_0x548d25(0x1f4)+CLI_BIN_NAME+_0x548d25(0x207),'\x20\x20'+CLI_BIN_NAME+_0x548d25(0x204),_0x548d25(0x20a)+_0x46e1dc+_0x548d25(0x210),_0x548d25(0x1f3),_0x548d25(0x208),_0x548d25(0x1fe)+NUDGE_OPT_OUT_ENV+_0x548d25(0x1f8),''][_0x548d25(0x20b)]('\x0a');}function a103_0x2ce4(){const _0x5011ff=['56324mikzAD','config_missing','flag_missing','65904GcnXlw','\x22\x20\x5c','115wvvANT','code','293202sJDKhJ','trim','stderr','11srokKg','replace','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','Hit\x20a\x20','1171648fbmmac','unknown_command','442608iifbYR','=1\x20to\x20silence\x20this\x20hint.','command','not_in_project','RABETBASE_DISABLE_ISSUE_NUDGE','19709260JqgMik','report','\x20\x20Set\x20','length','2485458LPEmyZ','28RXTMIl','cancelled','validation_error','\x20issue\x20report\x20\x5c','32xrPRvO','slice','\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','auth_required','\x20\x20\x20\x20--title\x20\x22','join'];a103_0x2ce4=function(){return _0x5011ff;};return a103_0x2ce4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104_0x57677e=a104_0x5e73;function a104_0x5aea(){const _0x53eee0=['descriptionFile:\x20','issue.description_original_bytes','push','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','description','truncated\x20from\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','671525JEkpql','File\x20not\x20found:\x20','331566FHduLt','25098IYCeAp','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','One-line\x20issue\x20summary','redacted\x20','string','5007464VvqVeL','Issue\x20description\x20file\x20is\x20empty:\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','descriptionSource:\x20','title','join','1068783zyqoeA','redactions:\x20','1633384fFtysi','truncated:\x20original\x20','length','Issue\x20description\x20cannot\x20be\x20empty.','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','truncated','validation','write','descriptionFilePath','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','issue.description_redaction_kinds','issue.title','\x20bytes','issue.description_truncated','apiError','\x20secret(s):\x20','str','issue.description','descriptionSource','511VSUfpo','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','issue','redactionCount','sanitize','originalBytes','filter','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','issue.description_redactions','Platform\x20issue\x20reported','redactionKinds','description-file','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','otel://','utf8','341519oGfcmn','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','trim','POST'];a104_0x5aea=function(){return _0x53eee0;};return a104_0x5aea();}(function(_0x2f18ab,_0x3dcf6d){const _0x2dfbe3=a104_0x5e73,_0x279874=_0x2f18ab();while(!![]){try{const _0x5416aa=parseInt(_0x2dfbe3(0x152))/0x1+-parseInt(_0x2dfbe3(0x15f))/0x2+-parseInt(_0x2dfbe3(0x16b))/0x3+-parseInt(_0x2dfbe3(0x16d))/0x4+-parseInt(_0x2dfbe3(0x15d))/0x5+parseInt(_0x2dfbe3(0x160))/0x6*(parseInt(_0x2dfbe3(0x143))/0x7)+parseInt(_0x2dfbe3(0x165))/0x8;if(_0x5416aa===_0x3dcf6d)break;else _0x279874['push'](_0x279874['shift']());}catch(_0x538d0b){_0x279874['push'](_0x279874['shift']());}}}(a104_0x5aea,0x32cf4));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';function a104_0x5e73(_0x282513,_0x3790be){_0x282513=_0x282513-0x133;const _0x5aea07=a104_0x5aea();let _0x5e73e9=_0x5aea07[_0x282513];return _0x5e73e9;}const DESCRIPTION_FILE_FLAG=a104_0x57677e(0x14e);export const issueReport={'service':a104_0x57677e(0x145),'command':'report','description':a104_0x57677e(0x14f),'risk':a104_0x57677e(0x137),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a104_0x57677e(0x169),'type':a104_0x57677e(0x164),'required':!![],'description':a104_0x57677e(0x162)},{'name':'description','type':a104_0x57677e(0x164),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a104_0x57677e(0x164),'description':a104_0x57677e(0x159)}],async 'validate'(_0xd0bf73){const _0x377e9c=a104_0x57677e,_0x37b4ee=_0xd0bf73[_0x377e9c(0x140)](_0x377e9c(0x169))[_0x377e9c(0x154)](),_0x434738=_0xd0bf73[_0x377e9c(0x140)](_0x377e9c(0x15a))[_0x377e9c(0x154)](),_0xfcaba1=_0xd0bf73[_0x377e9c(0x140)](DESCRIPTION_FILE_FLAG)[_0x377e9c(0x154)]();if(!_0x37b4ee)throw CliErrors['flagMissing'](_0x377e9c(0x169),_0x377e9c(0x134));const _0x20faa8=_0x434738[_0x377e9c(0x16f)]>0x0,_0x1b15fb=_0xfcaba1[_0x377e9c(0x16f)]>0x0;if(_0x20faa8===_0x1b15fb)throw CliErrors['validation'](_0x377e9c(0x153),_0x377e9c(0x14a));if(_0x1b15fb){const _0x103953=resolve(process['cwd'](),_0xfcaba1);if(!existsSync(_0x103953))throw CliErrors[_0x377e9c(0x136)](_0x377e9c(0x15e)+_0x103953);}},async 'dryRun'(_0x22eca2){const _0x35a387=a104_0x57677e,_0x3904f6=await prepareIssueReport(_0x22eca2);return{'method':_0x35a387(0x155),'url':_0x35a387(0x150)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3904f6[_0x35a387(0x169)],'issue.description':_0x3904f6[_0x35a387(0x15a)],'issue.description_original_bytes':_0x3904f6[_0x35a387(0x147)]['originalBytes'],'issue.description_truncated':_0x3904f6[_0x35a387(0x147)][_0x35a387(0x135)],'issue.description_redactions':_0x3904f6[_0x35a387(0x147)][_0x35a387(0x146)],'issue.description_redaction_kinds':_0x3904f6[_0x35a387(0x147)][_0x35a387(0x14d)][_0x35a387(0x16a)](',')}},'description':[_0x35a387(0x144),_0x35a387(0x168)+_0x3904f6['descriptionSource'],_0x3904f6[_0x35a387(0x138)]?_0x35a387(0x156)+_0x3904f6[_0x35a387(0x138)]:null,_0x3904f6[_0x35a387(0x147)]['truncated']?_0x35a387(0x16e)+_0x3904f6[_0x35a387(0x147)]['originalBytes']+_0x35a387(0x13c):null,_0x3904f6['sanitize'][_0x35a387(0x146)]>0x0?_0x35a387(0x16c)+_0x3904f6['sanitize'][_0x35a387(0x146)]+'\x20('+_0x3904f6['sanitize']['redactionKinds'][_0x35a387(0x16a)](',\x20')+')':null][_0x35a387(0x149)](Boolean)[_0x35a387(0x16a)]('\x0a')};},async 'execute'(_0x19aa5d){const _0x2e1c4d=a104_0x57677e,_0xfbf4d8=await prepareIssueReport(_0x19aa5d);try{await sendPlatformIssueCollectLog({'title':_0xfbf4d8[_0x2e1c4d(0x169)],'description':_0xfbf4d8[_0x2e1c4d(0x15a)],'sanitize':{'originalBytes':_0xfbf4d8['sanitize'][_0x2e1c4d(0x148)],'truncated':_0xfbf4d8[_0x2e1c4d(0x147)]['truncated'],'redactionCount':_0xfbf4d8[_0x2e1c4d(0x147)][_0x2e1c4d(0x146)],'redactionKinds':_0xfbf4d8[_0x2e1c4d(0x147)][_0x2e1c4d(0x14d)]}});}catch(_0x560fb3){throw CliErrors[_0x2e1c4d(0x13e)](_0x2e1c4d(0x15c)+(_0x560fb3 instanceof Error?_0x560fb3['message']:String(_0x560fb3)),_0x2e1c4d(0x139));}return{'ok':!![],'message':buildResultMessage(_0xfbf4d8[_0x2e1c4d(0x147)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2e1c4d(0x13b),_0x2e1c4d(0x141),_0x2e1c4d(0x157),_0x2e1c4d(0x13d),_0x2e1c4d(0x14b),_0x2e1c4d(0x13a)],'issue':{'title':_0xfbf4d8['title'],'descriptionLength':_0xfbf4d8['description']['length'],'descriptionSource':_0xfbf4d8[_0x2e1c4d(0x142)],..._0xfbf4d8[_0x2e1c4d(0x138)]?{'descriptionFile':_0xfbf4d8[_0x2e1c4d(0x138)]}:{},'sanitize':{'originalBytes':_0xfbf4d8['sanitize'][_0x2e1c4d(0x148)],'truncated':_0xfbf4d8['sanitize'][_0x2e1c4d(0x135)],'redactions':_0xfbf4d8[_0x2e1c4d(0x147)]['redactionCount'],'redactionKinds':_0xfbf4d8['sanitize'][_0x2e1c4d(0x14d)]}}}};}};function buildResultMessage(_0x13829f){const _0x56c793=a104_0x57677e,_0x2ae95b=[];return _0x13829f[_0x56c793(0x135)]&&_0x2ae95b[_0x56c793(0x158)](_0x56c793(0x15b)+_0x13829f[_0x56c793(0x148)]+_0x56c793(0x13c)),_0x13829f[_0x56c793(0x146)]>0x0&&_0x2ae95b[_0x56c793(0x158)](_0x56c793(0x163)+_0x13829f[_0x56c793(0x146)]+_0x56c793(0x13f)+_0x13829f[_0x56c793(0x14d)][_0x56c793(0x16a)](',\x20')),_0x2ae95b[_0x56c793(0x16f)]===0x0?_0x56c793(0x14c):'Platform\x20issue\x20reported\x20('+_0x2ae95b[_0x56c793(0x16a)](';\x20')+')';}async function prepareIssueReport(_0x4ba26d){const _0x2b8cf5=a104_0x57677e,_0x63e10a=_0x4ba26d['str'](_0x2b8cf5(0x169))[_0x2b8cf5(0x154)](),_0x129e0c=_0x4ba26d['str']('description'),_0x618a9b=_0x4ba26d[_0x2b8cf5(0x140)](DESCRIPTION_FILE_FLAG)[_0x2b8cf5(0x154)]();if(!_0x618a9b){const _0x43f35e=_0x129e0c;if(!_0x43f35e[_0x2b8cf5(0x154)]())throw CliErrors[_0x2b8cf5(0x136)](_0x2b8cf5(0x133),_0x2b8cf5(0x161));const _0x10c566=sanitizeIssueDescription(_0x43f35e);return{'title':_0x63e10a,'description':_0x10c566[_0x2b8cf5(0x15a)],'descriptionSource':'inline','sanitize':_0x10c566};}const _0x16a2a6=resolve(process['cwd'](),_0x618a9b),_0x113dca=await readFile(_0x16a2a6,_0x2b8cf5(0x151));if(!_0x113dca[_0x2b8cf5(0x154)]())throw CliErrors[_0x2b8cf5(0x136)](_0x2b8cf5(0x166)+_0x16a2a6,_0x2b8cf5(0x167));const _0x433257=sanitizeIssueDescription(_0x113dca);return{'title':_0x63e10a,'description':_0x433257[_0x2b8cf5(0x15a)],'descriptionSource':'file','descriptionFilePath':_0x16a2a6,'sanitize':_0x433257};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105_0x208e76=a105_0x40ca;(function(_0x20eb74,_0x7d20c0){const _0x491438=a105_0x40ca,_0x1e68e4=_0x20eb74();while(!![]){try{const _0x37957d=parseInt(_0x491438(0x1b8))/0x1*(parseInt(_0x491438(0x1ad))/0x2)+-parseInt(_0x491438(0x1a8))/0x3*(-parseInt(_0x491438(0x19d))/0x4)+-parseInt(_0x491438(0x1ac))/0x5*(-parseInt(_0x491438(0x1b0))/0x6)+-parseInt(_0x491438(0x19e))/0x7+-parseInt(_0x491438(0x1a7))/0x8*(parseInt(_0x491438(0x1b7))/0x9)+-parseInt(_0x491438(0x1ba))/0xa+parseInt(_0x491438(0x1a1))/0xb;if(_0x37957d===_0x7d20c0)break;else _0x1e68e4['push'](_0x1e68e4['shift']());}catch(_0xf4c21a){_0x1e68e4['push'](_0x1e68e4['shift']());}}}(a105_0x8b48,0x57147));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a105_0x40ca(_0x53dd69,_0x4a4bc8){_0x53dd69=_0x53dd69-0x19a;const _0x8b4805=a105_0x8b48();let _0x40cad6=_0x8b4805[_0x53dd69];return _0x40cad6;}const TRUNCATION_NOTICE=a105_0x208e76(0x19c),REDACTION_RULES=[{'kind':a105_0x208e76(0x1a9),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a105_0x208e76(0x1af)},{'kind':a105_0x208e76(0x1aa),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a105_0x208e76(0x1ab)},{'kind':a105_0x208e76(0x1a3),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a105_0x208e76(0x1b4)},{'kind':a105_0x208e76(0x19f),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a105_0x208e76(0x1a6)},{'kind':a105_0x208e76(0x1a0),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x173c04){const _0x3f3c95=a105_0x208e76,_0x57d04b=Buffer[_0x3f3c95(0x1a5)](_0x173c04,_0x3f3c95(0x1b6)),_0x7232c9=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x39123c=_0x173c04,_0x2a3c8a=0x0;const _0x570918=[];if(!_0x7232c9){const _0x5162ad=protectOssAccessKeyIds(_0x39123c);_0x39123c=_0x5162ad[_0x3f3c95(0x1a4)];for(const _0x34dc3d of REDACTION_RULES){let _0xba4b5f=0x0;_0x39123c=_0x39123c[_0x3f3c95(0x1b9)](_0x34dc3d['pattern'],(_0x100325,_0x25ce13)=>{const _0x1ab60b=_0x3f3c95;_0xba4b5f+=0x1;const _0x1bebbb=typeof _0x25ce13==='string'?_0x25ce13:'';return _0x1bebbb+'['+_0x34dc3d[_0x1ab60b(0x1a2)]+']';}),_0xba4b5f>0x0&&(_0x2a3c8a+=_0xba4b5f,!_0x570918['includes'](_0x34dc3d['kind'])&&_0x570918['push'](_0x34dc3d[_0x3f3c95(0x1b3)]));}_0x39123c=_0x5162ad[_0x3f3c95(0x19b)](_0x39123c);}let _0x54f852=![];if(Buffer['byteLength'](_0x39123c,_0x3f3c95(0x1b6))>ISSUE_DESCRIPTION_MAX_BYTES){_0x54f852=!![];const _0x57ea46=Buffer[_0x3f3c95(0x1a5)](TRUNCATION_NOTICE,_0x3f3c95(0x1b6)),_0x336c89=Math[_0x3f3c95(0x1b5)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x57ea46);_0x39123c=sliceUtf8Bytes(_0x39123c,_0x336c89)+TRUNCATION_NOTICE;}return{'description':_0x39123c,'originalBytes':_0x57d04b,'truncated':_0x54f852,'redactionCount':_0x2a3c8a,'redactionKinds':_0x570918};}function protectOssAccessKeyIds(_0x37cecf){const _0x2ea754=a105_0x208e76,_0x4485e5=[],_0x1933f7=_0x37cecf['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x26bff5,_0xa69e29)=>{const _0x2682f2=a105_0x40ca,_0x2a1c31=_0x4485e5[_0x2682f2(0x1b2)](_0x26bff5['slice'](_0xa69e29[_0x2682f2(0x1ae)]))-0x1;return _0xa69e29+_0x2682f2(0x1bb)+_0x2a1c31+'__';});return{'description':_0x1933f7,'restore':_0x140d15=>_0x140d15[_0x2ea754(0x1b9)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x363bf9,_0xd7c91f,_0x121e11)=>{const _0x580686=_0x4485e5[Number(_0x121e11)];return _0x580686===undefined?_0x363bf9:''+_0xd7c91f+_0x580686;})};}function a105_0x8b48(){const _0x31ff5e=['description','byteLength','REDACTED:password','296vEIDIg','1347zYDLfo','cookie','authorization','REDACTED:authorization','5zahsSq','78BIcSfy','length','REDACTED:cookie','3315984ELupQV','from','push','kind','REDACTED:private-key','max','utf8','150597HuHGPh','2851etEzHg','replace','6776770JeLGIV','__RB_OSS_ID_','toString','restore','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','772WsMsdo','3419297YnKJuk','access-key','bearer-jwt','15305818cSsCIJ','label','private-key'];a105_0x8b48=function(){return _0x31ff5e;};return a105_0x8b48();}function sliceUtf8Bytes(_0x25d73f,_0x3be551){const _0x46f936=a105_0x208e76;if(_0x3be551<=0x0)return'';const _0x3f813f=Buffer[_0x46f936(0x1b1)](_0x25d73f,_0x46f936(0x1b6));if(_0x3f813f[_0x46f936(0x1a5)]<=_0x3be551)return _0x25d73f;let _0x1000e4=_0x3be551;while(_0x1000e4>0x0){const _0xc192ef=_0x3f813f[_0x1000e4];if(_0xc192ef===undefined||(_0xc192ef&0xc0)!==0x80)break;_0x1000e4-=0x1;}return _0x3f813f['subarray'](0x0,_0x1000e4)[_0x46f936(0x19a)](_0x46f936(0x1b6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a106_0x392b(){const _0x386e42=['Knowledge-base\x20title','kb_title_required','--title\x20is\x20required.','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','2890JTOFiN','8345016tAGwYV','654960yrbwfG','trim','Company\x20knowledge\x20base\x20','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','company','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','22txtShp','rabetbase\x20kb\x20detail\x20--id\x20','str','kb_file_required','15gPOYcW','19472UqJWVF','4746300crpYMC','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','file','create','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','4788dOAISk','length','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','\x20--format\x20compress','109268JlKrgq','contentHash','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','appCode','--file\x20is\x20required.','POST','\x20for\x20','\x20with\x20title\x20','\x20--format\x20compress`\x20before\x20choosing\x20update.','content','title','kb_create_outcome_unknown','17190nhAeBA','13344jvayEy','kb_already_exists','/admin/knowledge-base/create','44xOgljt','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','string','verified'];a106_0x392b=function(){return _0x386e42;};return a106_0x392b();}const a106_0x407bea=a106_0x454d;(function(_0x301a02,_0x23a77c){const _0x3c000d=a106_0x454d,_0xda3048=_0x301a02();while(!![]){try{const _0x13bf23=-parseInt(_0x3c000d(0x191))/0x1*(-parseInt(_0x3c000d(0x17c))/0x2)+-parseInt(_0x3c000d(0x192))/0x3+parseInt(_0x3c000d(0x16c))/0x4*(-parseInt(_0x3c000d(0x190))/0x5)+parseInt(_0x3c000d(0x186))/0x6+-parseInt(_0x3c000d(0x168))/0x7*(-parseInt(_0x3c000d(0x179))/0x8)+-parseInt(_0x3c000d(0x178))/0x9*(parseInt(_0x3c000d(0x184))/0xa)+parseInt(_0x3c000d(0x18c))/0xb*(parseInt(_0x3c000d(0x185))/0xc);if(_0x13bf23===_0x23a77c)break;else _0xda3048['push'](_0xda3048['shift']());}catch(_0x343b3d){_0xda3048['push'](_0xda3048['shift']());}}}(a106_0x392b,0xd0503));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a106_0x407bea(0x17b);function a106_0x454d(_0x57373b,_0x4649f7){_0x57373b=_0x57373b-0x164;const _0x392b30=a106_0x392b();let _0x454d4a=_0x392b30[_0x57373b];return _0x454d4a;}function readCreateInput(_0x422e1d){const _0x25cc98=a106_0x407bea,_0x5d13c9=_0x422e1d[_0x25cc98(0x18e)](_0x25cc98(0x176))[_0x25cc98(0x187)]();if(!_0x5d13c9)throw kbError(_0x25cc98(0x181),_0x25cc98(0x182));const _0x3aff53=_0x422e1d[_0x25cc98(0x18e)](_0x25cc98(0x165))['trim']();if(!_0x3aff53)throw kbError(_0x25cc98(0x18f),_0x25cc98(0x170),_0x25cc98(0x17d));return{'title':_0x5d13c9,'file':_0x3aff53};}async function prepareCreate(_0x173adb){const _0x3bc5ab=a106_0x407bea,_0x3015f5=readCreateInput(_0x173adb),_0x13f030=await readKbFile(_0x3015f5['file']),_0xa28149=await fetchAllCompanyKnowledgeBases(_0x173adb,{'title':_0x3015f5[_0x3bc5ab(0x176)]}),_0x4e58df=findExactCompanyKnowledgeBases(_0xa28149,_0x173adb[_0x3bc5ab(0x16f)],_0x3015f5[_0x3bc5ab(0x176)]);if(_0x4e58df[_0x3bc5ab(0x169)]>0x0)throw kbError(_0x3bc5ab(0x17a),'Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20'+_0x173adb[_0x3bc5ab(0x16f)]+_0x3bc5ab(0x173)+_0x3015f5[_0x3bc5ab(0x176)]+'.',_0x3bc5ab(0x18b)+_0x4e58df[0x0]['id']+_0x3bc5ab(0x174));return{..._0x3015f5,'content':_0x13f030};}function plannedAfter(_0x2f47a6,_0x3e9a92){const _0x1ec689=a106_0x407bea;return{'scope':_0x1ec689(0x18a),'appCode':_0x2f47a6[_0x1ec689(0x16f)],'title':_0x3e9a92[_0x1ec689(0x176)],'contentByteSize':_0x3e9a92[_0x1ec689(0x175)]['byteSize'],'contentHash':_0x3e9a92[_0x1ec689(0x175)][_0x1ec689(0x16d)]};}function verifyCreatedState(_0x523112,_0x520520,_0x2853fd){const _0x22bea1=a106_0x407bea;assertCompanyKnowledgeBase(_0x2853fd,_0x523112[_0x22bea1(0x16f)],_0x2853fd['id']);const _0x5413cb=inspectKbContent(_0x2853fd['content']);if(_0x2853fd[_0x22bea1(0x176)]!==_0x520520['title']||_0x5413cb[_0x22bea1(0x16d)]!==_0x520520[_0x22bea1(0x175)][_0x22bea1(0x16d)])throw kbError('kb_verification_failed',_0x22bea1(0x188)+_0x2853fd['id']+_0x22bea1(0x16e),_0x22bea1(0x183)+_0x2853fd['id']+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');return projectKb(_0x2853fd);}export const kbCreate={'service':'kb','command':a106_0x407bea(0x166),'description':a106_0x407bea(0x164),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a106_0x407bea(0x176),'type':'string','required':!![],'description':a106_0x407bea(0x180)},{'name':a106_0x407bea(0x165),'type':a106_0x407bea(0x17e),'required':!![],'description':'UTF-8\x20text\x20or\x20Markdown\x20content\x20file'}],async 'validate'(_0x55406d){readCreateInput(_0x55406d);},async 'dryRun'(_0x5b20cc){const _0x19ef9f=a106_0x407bea,_0x282717=await prepareCreate(_0x5b20cc);return asDryRunResult({'operation':_0x19ef9f(0x166),'selector':{'scope':_0x19ef9f(0x18a),'appCode':_0x5b20cc[_0x19ef9f(0x16f)],'title':_0x282717[_0x19ef9f(0x176)]},'before':null,'after':plannedAfter(_0x5b20cc,_0x282717),'dryRun':!![],'backend':{'method':_0x19ef9f(0x171),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':'rabetbase\x20kb\x20list\x20--title\x20'+JSON['stringify'](_0x282717[_0x19ef9f(0x176)])+_0x19ef9f(0x16b)}},{'method':_0x19ef9f(0x171),'url':CREATE_PATH});},async 'execute'(_0x49dc66){const _0x24a26b=a106_0x407bea,_0x36b570=await prepareCreate(_0x49dc66);let _0x13ec31,_0x3296fc=![];try{const _0x466f83=await createEnterpriseKnowledgeBase(_0x49dc66['cookie'],{'appCode':_0x49dc66[_0x24a26b(0x16f)],'title':_0x36b570[_0x24a26b(0x176)],'content':_0x36b570[_0x24a26b(0x175)]['content']});assertCompanyKnowledgeBase(_0x466f83,_0x49dc66['appCode'],_0x466f83['id']),_0x13ec31=_0x466f83['id'];}catch(_0x5c0334){if(!isPlatformTransportFailure(_0x5c0334))throw _0x5c0334;_0x3296fc=!![];}if(_0x13ec31===undefined){const _0x1d156d=await verifyKbMutationReadback(_0x24a26b(0x166),!![],()=>fetchAllCompanyKnowledgeBases(_0x49dc66,{'title':_0x36b570['title']})),_0xc7dff7=findExactCompanyKnowledgeBases(_0x1d156d,_0x49dc66[_0x24a26b(0x16f)],_0x36b570[_0x24a26b(0x176)]);if(_0xc7dff7[_0x24a26b(0x169)]!==0x1)throw kbError(_0x24a26b(0x177),_0x24a26b(0x167)+_0xc7dff7['length']+'.',_0x24a26b(0x16a));_0x13ec31=_0xc7dff7[0x0]['id'];}const _0x17f656=await verifyKbMutationReadback(_0x24a26b(0x166),_0x3296fc,()=>requireKb(_0x49dc66,_0x13ec31)),_0x4fc38d=verifyCreatedState(_0x49dc66,_0x36b570,_0x17f656),_0x22bc79=_0x3296fc?[_0x24a26b(0x189)]:[];return{'ok':!![],'data':{'operation':_0x24a26b(0x166),'selector':{'id':_0x4fc38d['id'],'scope':'company','appCode':_0x4fc38d[_0x24a26b(0x16f)]},'before':null,'after':_0x4fc38d,'dryRun':![],'backend':{'method':_0x24a26b(0x171),'path':CREATE_PATH},'warnings':_0x22bc79,'verification':{'status':_0x24a26b(0x17f),'recoveredAfterUnknownResponse':_0x3296fc,'lookupCommand':_0x24a26b(0x18d)+_0x4fc38d['id']+_0x24a26b(0x16b)}},'message':'Created\x20company\x20knowledge\x20base\x20'+_0x4fc38d['id']+_0x24a26b(0x172)+_0x4fc38d['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a107_0x3bcf94=a107_0x27b4;function a107_0x268c(){const _0x3069df=['company','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','already_absent','cookie','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','kb_delete_outcome_unknown','161556LAOsiJ','4156552xxmZpd','isSafeInteger','unshift','number','delete','38412462uYvcRg','14UwjUce','10zCVwRh','\x20--format\x20compress','/admin/knowledge-base/delete','appCode','expected-version','Soft-deleted\x20company\x20knowledge\x20base\x20','kb_expected_version_invalid','4757576HbbpkQ','POST','1330907reylwp','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','kb_verification_failed','Company\x20knowledge\x20base\x20','2743110bZCmBq','5uLERAk','no_op','Company\x20knowledge-base\x20id','540153Fwssnd','9cvNHmX'];a107_0x268c=function(){return _0x3069df;};return a107_0x268c();}(function(_0x4eeb86,_0x43ac5b){const _0x4831e5=a107_0x27b4,_0x471d72=_0x4eeb86();while(!![]){try{const _0x2b0c74=-parseInt(_0x4831e5(0x161))/0x1+-parseInt(_0x4831e5(0x158))/0x2*(parseInt(_0x4831e5(0x145))/0x3)+-parseInt(_0x4831e5(0x15f))/0x4+-parseInt(_0x4831e5(0x166))/0x5*(-parseInt(_0x4831e5(0x150))/0x6)+parseInt(_0x4831e5(0x157))/0x7*(parseInt(_0x4831e5(0x151))/0x8)+parseInt(_0x4831e5(0x146))/0x9*(-parseInt(_0x4831e5(0x165))/0xa)+parseInt(_0x4831e5(0x156))/0xb;if(_0x2b0c74===_0x43ac5b)break;else _0x471d72['push'](_0x471d72['shift']());}catch(_0x3fbd36){_0x471d72['push'](_0x471d72['shift']());}}}(a107_0x268c,0xd2c07));import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a107_0x27b4(_0x4e26a9,_0x1edd62){_0x4e26a9=_0x4e26a9-0x145;const _0x268c6e=a107_0x268c();let _0x27b40c=_0x268c6e[_0x4e26a9];return _0x27b40c;}import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH=a107_0x3bcf94(0x15a),RAG_WARNING='Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.',NON_ATOMIC_WARNING=a107_0x3bcf94(0x149);function readExpectedVersion(_0x43d5e4){const _0x50719d=a107_0x3bcf94,_0x13b835=_0x43d5e4['flag'](_0x50719d(0x15c));if(_0x13b835===undefined)return undefined;const _0x76e21b=Number(_0x13b835);if(!Number[_0x50719d(0x152)](_0x76e21b)||_0x76e21b<0x0)throw kbError(_0x50719d(0x15e),'--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x76e21b;}function noOpData(_0x41494a,_0x3478af,_0x4087b0){const _0x826b1a=a107_0x3bcf94;return{'operation':_0x826b1a(0x167),'selector':{'id':_0x3478af,'scope':_0x826b1a(0x147),'appCode':_0x41494a[_0x826b1a(0x15b)]},'before':null,'after':null,'dryRun':_0x4087b0,'deleteCalled':![],'backend':{'method':_0x826b1a(0x160),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x826b1a(0x14a),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a107_0x3bcf94(0x155),'description':a107_0x3bcf94(0x14d),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a107_0x3bcf94(0x154),'required':!![],'description':a107_0x3bcf94(0x168)},{'name':a107_0x3bcf94(0x15c),'type':a107_0x3bcf94(0x154),'required':![],'description':a107_0x3bcf94(0x14e)}],async 'validate'(_0x439989){readKbId(_0x439989),readExpectedVersion(_0x439989),requireKbExplicitYes(_0x439989);},async 'dryRun'(_0x112533){const _0x195591=a107_0x3bcf94,_0x57ba11=readKbId(_0x112533),_0x14c189=readExpectedVersion(_0x112533),_0x327a1e=await getKbOrNull(_0x112533,_0x57ba11);if(!_0x327a1e)return asDryRunResult(noOpData(_0x112533,_0x57ba11,!![]),{'method':'POST','url':DELETE_PATH});assertExpectedKbVersion(_0x327a1e,_0x14c189);const _0x5a5797=projectKb(_0x327a1e),_0x1dc04a=[RAG_WARNING];if(_0x14c189!==undefined)_0x1dc04a[_0x195591(0x153)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x195591(0x155),'selector':{'id':_0x5a5797['id'],'scope':_0x195591(0x147),'appCode':_0x5a5797[_0x195591(0x15b)]},'before':_0x5a5797,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x195591(0x160),'path':DELETE_PATH},'warnings':_0x1dc04a,'verification':{'expectedVersion':_0x14c189??null,'atomicCompareAndSet':![],'snapshotHash':_0x5a5797['snapshotHash'],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x5a5797['id']+'\x20--format\x20compress'}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x232cd5){const _0x28111b=a107_0x3bcf94;requireKbExplicitYes(_0x232cd5);const _0x45e0f3=readKbId(_0x232cd5),_0x5d334e=readExpectedVersion(_0x232cd5),_0x5309ae=await getKbOrNull(_0x232cd5,_0x45e0f3);if(!_0x5309ae)return{'ok':!![],'data':noOpData(_0x232cd5,_0x45e0f3,![]),'message':_0x28111b(0x164)+_0x45e0f3+'\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made'};assertExpectedKbVersion(_0x5309ae,_0x5d334e);const _0x46a11a=projectKb(_0x5309ae);let _0x59a4c9=![];try{await deleteEnterpriseKnowledgeBase(_0x232cd5[_0x28111b(0x14b)],_0x45e0f3);}catch(_0x55a40c){if(!isPlatformTransportFailure(_0x55a40c))throw _0x55a40c;_0x59a4c9=!![];}const _0x40c8ee=await verifyKbMutationReadback(_0x28111b(0x155),_0x59a4c9,()=>getKbOrNull(_0x232cd5,_0x45e0f3));if(_0x40c8ee)throw kbError(_0x59a4c9?_0x28111b(0x14f):_0x28111b(0x163),_0x28111b(0x164)+_0x45e0f3+'\x20remains\x20readable\x20after\x20delete.',_0x28111b(0x162)+_0x45e0f3+_0x28111b(0x148));const _0x369b81=[RAG_WARNING];if(_0x5d334e!==undefined)_0x369b81['unshift'](NON_ATOMIC_WARNING);return _0x59a4c9&&_0x369b81[_0x28111b(0x153)](_0x28111b(0x14c)),{'ok':!![],'data':{'operation':_0x28111b(0x155),'selector':{'id':_0x46a11a['id'],'scope':_0x28111b(0x147),'appCode':_0x46a11a['appCode']},'before':_0x46a11a,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x28111b(0x160),'path':DELETE_PATH},'warnings':_0x369b81,'verification':{'status':'verified','databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x59a4c9,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x46a11a['id']+_0x28111b(0x159)}},'message':_0x28111b(0x15d)+_0x46a11a['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a108_0x4e76(){const _0x36aac7=['number','4603775iHTEsa','2611768RKCxqx','2778PcTxKC','16hXvbTe','read','9FhFLuT','327HPqeRA','13DttiDq','6628MMjkDU','4986732xaARno','48241vnPENf','6587PEOtEO','10NyBtPr','detail','Loaded\x20company\x20knowledge\x20base\x20','3130835CuXCgw','Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app'];a108_0x4e76=function(){return _0x36aac7;};return a108_0x4e76();}const a108_0x7d378=a108_0xe836;(function(_0x404ded,_0x20d0a9){const _0x525fe1=a108_0xe836,_0x13c1fe=_0x404ded();while(!![]){try{const _0x167ec0=-parseInt(_0x525fe1(0x184))/0x1*(parseInt(_0x525fe1(0x18f))/0x2)+-parseInt(_0x525fe1(0x180))/0x3*(-parseInt(_0x525fe1(0x182))/0x4)+parseInt(_0x525fe1(0x189))/0x5+-parseInt(_0x525fe1(0x18e))/0x6*(-parseInt(_0x525fe1(0x185))/0x7)+-parseInt(_0x525fe1(0x18d))/0x8*(-parseInt(_0x525fe1(0x191))/0x9)+-parseInt(_0x525fe1(0x186))/0xa*(parseInt(_0x525fe1(0x18c))/0xb)+-parseInt(_0x525fe1(0x183))/0xc*(parseInt(_0x525fe1(0x181))/0xd);if(_0x167ec0===_0x20d0a9)break;else _0x13c1fe['push'](_0x13c1fe['shift']());}catch(_0x426eb0){_0x13c1fe['push'](_0x13c1fe['shift']());}}}(a108_0x4e76,0x552f8));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';function a108_0xe836(_0x37cdb2,_0x54668e){_0x37cdb2=_0x37cdb2-0x180;const _0x4e764a=a108_0x4e76();let _0xe8364c=_0x4e764a[_0x37cdb2];return _0xe8364c;}export const kbDetail={'service':'kb','command':a108_0x7d378(0x187),'description':a108_0x7d378(0x18a),'risk':a108_0x7d378(0x190),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a108_0x7d378(0x18b),'required':!![],'description':'Company\x20knowledge-base\x20id'}],async 'validate'(_0x5cea7c){readKbId(_0x5cea7c);},async 'execute'(_0x2941cd){const _0x1a09a5=a108_0x7d378,_0xac67c3=readKbId(_0x2941cd),_0x2ea525=await requireKb(_0x2941cd,_0xac67c3);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x2ea525)},'message':_0x1a09a5(0x188)+_0xac67c3};}};
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f0f65,_0x190724){const _0x294b0e=a109_0x3633,_0x1108bb=_0x1f0f65();while(!![]){try{const _0x4c2430=-parseInt(_0x294b0e(0x7d))/0x1*(-parseInt(_0x294b0e(0x7c))/0x2)+-parseInt(_0x294b0e(0x76))/0x3*(parseInt(_0x294b0e(0x79))/0x4)+parseInt(_0x294b0e(0x7e))/0x5+parseInt(_0x294b0e(0x7f))/0x6+parseInt(_0x294b0e(0x77))/0x7*(-parseInt(_0x294b0e(0x7b))/0x8)+parseInt(_0x294b0e(0x78))/0x9+-parseInt(_0x294b0e(0x7a))/0xa;if(_0x4c2430===_0x190724)break;else _0x1108bb['push'](_0x1108bb['shift']());}catch(_0x2b58b1){_0x1108bb['push'](_0x1108bb['shift']());}}}(a109_0x3264,0x263c5));import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';import{kbSearch}from'../../commands/kb/search.js';import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';function a109_0x3633(_0x295409,_0x400f47){_0x295409=_0x295409-0x76;const _0x326480=a109_0x3264();let _0x36331d=_0x326480[_0x295409];return _0x36331d;}import{kbDelete}from'../../commands/kb/delete.js';export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete];function a109_0x3264(){const _0x5b9b7b=['1969416zBzPRf','4bqHDyN','4678610erodHd','80cypdim','140fEuNRs','1315HRScjz','1284650jOsztI','1691106bKXVpn','388293cTpVAg','67025LjzPpi'];a109_0x3264=function(){return _0x5b9b7b;};return a109_0x3264();}
|
package/lib/commands/kb/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x1f7d8c=a110_0x2610;(function(_0x4de434,_0x282503){const _0x5bc4f7=a110_0x2610,_0x12fa3e=_0x4de434();while(!![]){try{const _0x141a30=-parseInt(_0x5bc4f7(0x1d0))/0x1+parseInt(_0x5bc4f7(0x1d7))/0x2*(-parseInt(_0x5bc4f7(0x1c2))/0x3)+parseInt(_0x5bc4f7(0x1c9))/0x4*(-parseInt(_0x5bc4f7(0x1d2))/0x5)+-parseInt(_0x5bc4f7(0x1d8))/0x6*(parseInt(_0x5bc4f7(0x1cd))/0x7)+-parseInt(_0x5bc4f7(0x1c8))/0x8*(parseInt(_0x5bc4f7(0x1ca))/0x9)+parseInt(_0x5bc4f7(0x1cc))/0xa+-parseInt(_0x5bc4f7(0x1c4))/0xb*(-parseInt(_0x5bc4f7(0x1d5))/0xc);if(_0x141a30===_0x282503)break;else _0x12fa3e['push'](_0x12fa3e['shift']());}catch(_0x433a12){_0x12fa3e['push'](_0x12fa3e['shift']());}}}(a110_0x5722,0xaecfd));function a110_0x5722(){const _0x59156f=['appCode','2dMGXkz','6jiyBOj','1982499gmcnxy','list','484NFpomK','Filter\x20by\x20knowledge-base\x20title','read','title','269096MtUCzX','1712DSZkrK','261pNsnta','map','6080840qqwmmi','5265547ztAEaD','str','string','506152dprMKd','\x20company\x20knowledge\x20base(s)\x20for\x20','12420lwReWK','Found\x20','length','1108848xQkDrm'];a110_0x5722=function(){return _0x59156f;};return a110_0x5722();}import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';function a110_0x2610(_0x3d3bff,_0x42ab2b){_0x3d3bff=_0x3d3bff-0x1c2;const _0x5722f4=a110_0x5722();let _0x2610bb=_0x5722f4[_0x3d3bff];return _0x2610bb;}export const kbList={'service':'kb','command':a110_0x1f7d8c(0x1c3),'description':'List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','risk':a110_0x1f7d8c(0x1c6),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a110_0x1f7d8c(0x1c7),'type':a110_0x1f7d8c(0x1cf),'required':![],'description':a110_0x1f7d8c(0x1c5)}],async 'execute'(_0x2e3cc0){const _0x3b7f19=a110_0x1f7d8c,_0x4be4aa=_0x2e3cc0[_0x3b7f19(0x1ce)](_0x3b7f19(0x1c7))['trim'](),_0x3ebab8=await fetchAllCompanyKnowledgeBases(_0x2e3cc0,{..._0x4be4aa?{'title':_0x4be4aa}:{}}),_0x4f85fe=_0x3ebab8[_0x3b7f19(0x1cb)](projectKb);return{'ok':!![],'data':{'total':_0x4f85fe['length'],'knowledgeBases':_0x4f85fe},'message':_0x3b7f19(0x1d3)+_0x4f85fe[_0x3b7f19(0x1d4)]+_0x3b7f19(0x1d1)+_0x2e3cc0[_0x3b7f19(0x1d6)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111_0x11ecfc=a111_0x31d3;(function(_0x2bb16b,_0x5da190){const _0xa08832=a111_0x31d3,_0x353c8f=_0x2bb16b();while(!![]){try{const _0x1b159e=parseInt(_0xa08832(0x151))/0x1*(-parseInt(_0xa08832(0x14e))/0x2)+-parseInt(_0xa08832(0x138))/0x3*(parseInt(_0xa08832(0x144))/0x4)+-parseInt(_0xa08832(0x14b))/0x5*(parseInt(_0xa08832(0x13c))/0x6)+-parseInt(_0xa08832(0x139))/0x7+parseInt(_0xa08832(0x142))/0x8*(-parseInt(_0xa08832(0x13a))/0x9)+parseInt(_0xa08832(0x13f))/0xa*(-parseInt(_0xa08832(0x143))/0xb)+parseInt(_0xa08832(0x14f))/0xc*(parseInt(_0xa08832(0x141))/0xd);if(_0x1b159e===_0x5da190)break;else _0x353c8f['push'](_0x353c8f['shift']());}catch(_0x3f7be1){_0x353c8f['push'](_0x353c8f['shift']());}}}(a111_0x22e9,0xb0d84));import{searchDevelopmentKnowledge}from'../../core/kb-search-client.js';import{CliErrors}from'../../errors.js';function readSearchQuery(_0x16fcfd){const _0x24f75a=a111_0x31d3,_0x34d7ff=_0x16fcfd['str'](_0x24f75a(0x150))['trim']();if(!_0x34d7ff)throw CliErrors[_0x24f75a(0x13d)]('Search\x20query\x20is\x20required.');return _0x34d7ff;}function a111_0x31d3(_0x43963e,_0x916962){_0x43963e=_0x43963e-0x136;const _0x22e956=a111_0x22e9();let _0x31d3aa=_0x22e956[_0x43963e];return _0x31d3aa;}function a111_0x22e9(){const _0x4589c4=['3413367ZUzoKU','topk','5593338ZbTmXL','validation','Found\x20','330630pODNDw','signal','65sZeJzS','24yqeJst','44moCKYb','1969244lYPPoP','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','read','Company\x20and\x20public\x20knowledge\x20search\x20query','isSafeInteger','flag','total','5wwZVIV','search','string','366eyyEHc','11221380OKZhOc','query','627trYAgd','number','appCode','\x20company/public\x20knowledge\x20hit(s)\x20for\x20','Search\x20company\x20and\x20public\x20knowledge\x20for\x20the\x20resolved\x20app','3xEuSSg','7993321eFmoDq'];a111_0x22e9=function(){return _0x4589c4;};return a111_0x22e9();}function readSearchTopK(_0xc55deb){const _0x487f87=a111_0x31d3,_0x503ec0=_0xc55deb[_0x487f87(0x149)](_0x487f87(0x13b));if(_0x503ec0===undefined||_0x503ec0===null||_0x503ec0==='')return undefined;const _0x43207e=_0xc55deb['num'](_0x487f87(0x13b));if(!Number[_0x487f87(0x148)](_0x43207e)||_0x43207e<0x1||_0x43207e>0x32)throw CliErrors['validation'](_0x487f87(0x145));return _0x43207e;}export const kbSearch={'service':'kb','command':a111_0x11ecfc(0x14c),'description':a111_0x11ecfc(0x137),'risk':a111_0x11ecfc(0x146),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a111_0x11ecfc(0x150),'type':a111_0x11ecfc(0x14d),'required':!![],'description':a111_0x11ecfc(0x147)},{'name':a111_0x11ecfc(0x13b),'type':a111_0x11ecfc(0x152),'required':![],'description':'Maximum\x20number\x20of\x20knowledge\x20hits\x20to\x20return'}],async 'validate'(_0x17db2e){readSearchQuery(_0x17db2e),readSearchTopK(_0x17db2e);},async 'execute'(_0x34a7c9){const _0x26412c=a111_0x11ecfc,_0x2f1e22=readSearchQuery(_0x34a7c9),_0x3fd30a=readSearchTopK(_0x34a7c9),_0xebcfe7=await searchDevelopmentKnowledge({'cookie':_0x34a7c9['cookie'],'query':_0x2f1e22,'appCode':_0x34a7c9[_0x26412c(0x153)],..._0x3fd30a!==undefined?{'topK':_0x3fd30a}:{},'signal':_0x34a7c9[_0x26412c(0x140)]});return{'ok':!![],'data':_0xebcfe7,'message':_0x26412c(0x13e)+_0xebcfe7[_0x26412c(0x14a)]+_0x26412c(0x136)+_0x34a7c9[_0x26412c(0x153)]};}};
|