@lovrabet/rabetbase-cli 2.5.1-beta.2 → 2.5.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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.d.ts +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/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/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.d.ts +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-routing.js +1 -1
- package/lib/config/schema.d.ts +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.d.ts +2 -0
- 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.d.ts +0 -16
- 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.d.ts +30 -0
- package/lib/core/kb-search-client.js +1 -0
- 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.d.ts +1 -0
- 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/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 +2 -2
- package/skills/rabetbase/references/rabetbase-config.md +4 -1
- package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
- package/skills/rabetbase/references/rabetbase-init.md +2 -0
- package/skills/rabetbase/references/rabetbase-kb.md +7 -7
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x7a4b37=a99_0xfd68;(function(_0x29143a,_0xf90675){const _0x18ff1b=a99_0xfd68,_0x519a05=_0x29143a();while(!![]){try{const _0x10ac20=-parseInt(_0x18ff1b(0x22e))/0x1*(parseInt(_0x18ff1b(0x1f6))/0x2)+-parseInt(_0x18ff1b(0x228))/0x3+parseInt(_0x18ff1b(0x21d))/0x4*(parseInt(_0x18ff1b(0x21e))/0x5)+parseInt(_0x18ff1b(0x1f3))/0x6*(-parseInt(_0x18ff1b(0x22a))/0x7)+-parseInt(_0x18ff1b(0x1ee))/0x8+-parseInt(_0x18ff1b(0x229))/0x9*(parseInt(_0x18ff1b(0x230))/0xa)+parseInt(_0x18ff1b(0x21b))/0xb;if(_0x10ac20===_0xf90675)break;else _0x519a05['push'](_0x519a05['shift']());}catch(_0x44da64){_0x519a05['push'](_0x519a05['shift']());}}}(a99_0x4552,0x1d497));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SYNC_PATH='/smartapi/data-sync/sync',TARGET_ENVS=[a99_0x7a4b37(0x220),a99_0x7a4b37(0x22c),a99_0x7a4b37(0x213),a99_0x7a4b37(0x207)],SYNC_TYPES=[a99_0x7a4b37(0x20e),a99_0x7a4b37(0x204),a99_0x7a4b37(0x1ed)],DB_ID_FLAG={'name':a99_0x7a4b37(0x1fc),'type':'number','required':!![],'description':a99_0x7a4b37(0x1f8)},TARGET_ENV_FLAG={'name':'target-env','type':a99_0x7a4b37(0x206),'enum':[...TARGET_ENVS],'description':a99_0x7a4b37(0x1f7)},DIRECT_FLAG={'name':a99_0x7a4b37(0x219),'type':'boolean','description':a99_0x7a4b37(0x22b)},TYPE_FLAG={'name':'type','type':a99_0x7a4b37(0x206),'required':!![],'enum':[...SYNC_TYPES],'description':a99_0x7a4b37(0x234)},CODES_FLAG={'name':'codes','type':a99_0x7a4b37(0x206),'required':!![],'description':a99_0x7a4b37(0x22f)},CONFIRM_FLAG={'name':a99_0x7a4b37(0x1e7),'type':'boolean','description':a99_0x7a4b37(0x1f1)};export const deploymentSync={'service':a99_0x7a4b37(0x235),'command':'sync','description':a99_0x7a4b37(0x1fb),'risk':'write','structuredErrors':!![],'confirmationDescription':a99_0x7a4b37(0x223),'flags':[DB_ID_FLAG,TARGET_ENV_FLAG,DIRECT_FLAG,TYPE_FLAG,CODES_FLAG,CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3ed78e){buildSyncPlan(_0x3ed78e);},async 'dryRun'(_0x1d563e){const _0x1f8567=a99_0x7a4b37,_0xac3892=buildSyncPlan(_0x1d563e);return asDryRunResult(buildOutput(_0xac3892,[],!![],_0x1f8567(0x1eb)),{'method':_0x1f8567(0x1fd),'url':SYNC_PATH,'description':_0x1f8567(0x1e8)+_0xac3892[_0x1f8567(0x208)][_0x1f8567(0x201)][_0x1f8567(0x231)]+'\x20'+_0xac3892[_0x1f8567(0x208)][_0x1f8567(0x1fe)]+'\x20item(s).'});},async 'execute'(_0x5da87a){const _0x457b1e=a99_0x7a4b37,_0x16d642=buildSyncPlan(_0x5da87a);if(!_0x5da87a[_0x457b1e(0x20a)](_0x457b1e(0x1e7)))throw CliErrors[_0x457b1e(0x1e6)](_0x457b1e(0x1f4),'Run\x20with\x20--dry-run\x20first,\x20verify\x20the\x20target\x20and\x20codes,\x20then\x20add\x20--confirm.');let _0x27f9db;try{_0x27f9db=(await syncDeploymentMetadata(_0x16d642[_0x457b1e(0x208)]))[_0x457b1e(0x226)];}catch(_0x2bbe38){if(!isPlatformTransportFailure(_0x2bbe38))throw _0x2bbe38;const _0x5ba46b=new CliError(_0x457b1e(0x1ea),0x2,_0x457b1e(0x21c),'Inspect\x20the\x20target\x20database\x20before\x20retrying.\x20Do\x20not\x20resubmit\x20automatically.');attachErrorData(_0x5ba46b,buildOutput(_0x16d642,[],![],_0x457b1e(0x21f)));throw _0x5ba46b;}const _0x13d987=_0x27f9db[_0x457b1e(0x21a)](_0x523f3d=>_0x523f3d[_0x457b1e(0x1e5)]==='FAILED'),_0x4a47fa=_0x13d987[_0x457b1e(0x231)]>0x0?_0x457b1e(0x205):_0x457b1e(0x211),_0x5ede04=buildOutput(_0x16d642,_0x27f9db,![],_0x4a47fa);if(_0x13d987[_0x457b1e(0x231)]>0x0){const _0xb22693=new CliError(_0x457b1e(0x203),0x1,_0x457b1e(0x212)+_0x13d987['length']+'/'+_0x27f9db[_0x457b1e(0x231)]+_0x457b1e(0x1fa),'Review\x20data.items\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20before\x20deciding\x20whether\x20to\x20retry\x20failed\x20codes.');attachErrorData(_0xb22693,_0x5ede04);throw _0xb22693;}return{'ok':!![],'data':_0x5ede04,'message':'Synchronized\x20'+_0x27f9db['length']+_0x457b1e(0x1e9)};}};function buildSyncPlan(_0x23e5c8){const _0x58ad77=a99_0x7a4b37,_0x1605b4=_0x23e5c8[_0x58ad77(0x227)]('db-id');if(!Number[_0x58ad77(0x216)](_0x1605b4)||_0x1605b4<=0x0)throw CliErrors['validation'](_0x58ad77(0x224));const _0x1aa4ff=_0x23e5c8[_0x58ad77(0x210)](_0x58ad77(0x1f5))[_0x58ad77(0x232)](),_0x192ea1=_0x23e5c8[_0x58ad77(0x20a)](_0x58ad77(0x219));if(Boolean(_0x1aa4ff)===_0x192ea1)throw CliErrors[_0x58ad77(0x1e6)]('Choose\x20exactly\x20one\x20target\x20mode:\x20--target-env\x20or\x20--direct.');if(_0x1aa4ff&&!TARGET_ENVS['includes'](_0x1aa4ff))throw CliErrors['validation'](_0x58ad77(0x1ec)+TARGET_ENVS[_0x58ad77(0x218)](',\x20')+'.');const _0x3bdee2=_0x23e5c8[_0x58ad77(0x210)](_0x58ad77(0x22d))[_0x58ad77(0x232)]();if(!SYNC_TYPES[_0x58ad77(0x222)](_0x3bdee2))throw CliErrors[_0x58ad77(0x1e6)](_0x58ad77(0x1f2)+SYNC_TYPES['join'](',\x20')+'.');const _0x55e8dd=normalizeCodes(_0x23e5c8[_0x58ad77(0x210)](_0x58ad77(0x225)));if(_0x55e8dd[_0x58ad77(0x231)]===0x0)throw CliErrors[_0x58ad77(0x1e6)](_0x58ad77(0x233));if(_0x55e8dd[_0x58ad77(0x231)]>0x64)throw CliErrors[_0x58ad77(0x1e6)]('--codes\x20supports\x20at\x20most\x20100\x20unique\x20codes.');const _0x39cff7={'appCode':_0x23e5c8[_0x58ad77(0x202)],'dbLinkId':_0x1605b4,..._0x1aa4ff?{'env':_0x1aa4ff}:{},'bizType':_0x3bdee2,'bizCodes':_0x55e8dd},_0x2d8476=[_0x58ad77(0x217),_0x58ad77(0x20f)];return _0x3bdee2===_0x58ad77(0x20e)&&_0x2d8476[_0x58ad77(0x209)](_0x58ad77(0x20c)),{'input':_0x39cff7,'selector':{'appCode':_0x23e5c8[_0x58ad77(0x202)],'dbLinkId':_0x1605b4,'targetMode':_0x1aa4ff?_0x58ad77(0x20b):_0x58ad77(0x219),..._0x1aa4ff?{'targetEnv':_0x1aa4ff}:{},'bizType':_0x3bdee2,'bizCodes':_0x55e8dd},'warnings':_0x2d8476};}function normalizeCodes(_0x503a9c){const _0x43fba6=a99_0x7a4b37;return[...new Set(_0x503a9c[_0x43fba6(0x1f9)](',')[_0x43fba6(0x214)](_0x2f2765=>_0x2f2765[_0x43fba6(0x232)]())[_0x43fba6(0x21a)](Boolean))];}function a99_0xfd68(_0x4f4887,_0x3c0889){_0x4f4887=_0x4f4887-0x1e4;const _0x455228=a99_0x4552();let _0xfd687d=_0x455228[_0x4f4887];return _0xfd687d;}function a99_0x4552(){const _0x433ed5=['Metadata\x20type\x20to\x20synchronize','deployment','defineProperty','action','validation','confirm','Would\x20synchronize\x20','\x20deployment\x20metadata\x20item(s).','deployment_sync_outcome_unknown','not_submitted','--target-env\x20must\x20be\x20one\x20of:\x20','sql','1603472Zvsgxx','UPDATED','selector','Confirm\x20the\x20target\x20connection\x20and\x20metadata\x20codes','--type\x20must\x20be\x20one\x20of:\x20','12UmJxXS','--confirm\x20is\x20required\x20to\x20synchronize\x20deployment\x20metadata.','target-env','10iTZnfx','Deployment\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','Base\x20dblink\x20ID\x20for\x20direct\x20or\x20server-side\x20environment-mapped\x20deployment\x20sync','split','\x20failed\x20item(s).','Synchronize\x20selected\x20development\x20metadata\x20to\x20a\x20deployment\x20database','db-id','POST','bizType','warnings','deployment_metadata_sync','bizCodes','appCode','deployment_sync_partial_failure','bff','partial_failure','string','prod','input','unshift','bool','environment','Dataset\x20sync\x20may\x20commit\x20the\x20target\x20dblink\x20before\x20item\x20synchronization;\x20that\x20dblink\x20change\x20is\x20not\x20rolled\x20back\x20when\x20later\x20items\x20fail.','target_read_api_unavailable','dataset','Do\x20not\x20retry\x20automatically\x20when\x20the\x20request\x20outcome\x20is\x20unknown.','str','succeeded','Deployment\x20sync\x20completed\x20with\x20','pre','map','CREATED','isSafeInteger','Target\x20state\x20is\x20not\x20read\x20back\x20because\x20no\x20target\x20metadata\x20read\x20API\x20is\x20available.','join','direct','filter','10572430IDyqoU','Deployment\x20sync\x20response\x20was\x20unavailable;\x20the\x20target\x20outcome\x20is\x20unknown.','332vPjVav','2525MzEXgG','unknown','dev','FAILED','includes','Synchronize\x20selected\x20development\x20metadata\x20into\x20one\x20deployment\x20database\x20connection.','--db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','codes','items','num','362505HZwZgM','155007JyTBRM','678748PpTNEw','Use\x20the\x20base\x20dblink\x20connection\x20directly,\x20without\x20environment\x20mapping','test','type','46021gqWTef','Comma-separated\x20Dataset,\x20Backend\x20Function,\x20or\x20SQL\x20codes\x20(maximum\x20100)','80rvHXUp','length','trim','--codes\x20must\x20contain\x20at\x20least\x20one\x20non-blank\x20code.'];a99_0x4552=function(){return _0x433ed5;};return a99_0x4552();}function buildOutput(_0x5a0b9d,_0x3fecb6,_0x5d3d05,_0xd4acf1){const _0x13ff26=a99_0x7a4b37,_0x3e24e5=_0xd4acf1===_0x13ff26(0x211)||_0xd4acf1===_0x13ff26(0x205),_0x1e7b53=_0x3fecb6['reduce']((_0x85b797,_0x1087bb)=>{const _0x321a72=_0x13ff26;return _0x85b797[_0x1087bb[_0x321a72(0x1e5)]]=(_0x85b797[_0x1087bb[_0x321a72(0x1e5)]]??0x0)+0x1,_0x85b797;},{});return{'operation':_0x13ff26(0x200),'selector':_0x5a0b9d[_0x13ff26(0x1f0)],'before':null,'after':null,'dryRun':_0x5d3d05,'backend':{'submitted':_0xd4acf1!==_0x13ff26(0x1eb),'method':_0x13ff26(0x1fd),'path':SYNC_PATH,'outcome':_0xd4acf1,'body':_0x5a0b9d['input']},'summary':{'requested':_0x5a0b9d[_0x13ff26(0x208)]['bizCodes'][_0x13ff26(0x231)],'total':_0x3e24e5?_0x3fecb6['length']:_0x5a0b9d[_0x13ff26(0x208)][_0x13ff26(0x201)][_0x13ff26(0x231)],'created':_0x3fecb6[_0x13ff26(0x21a)](_0x101717=>_0x101717[_0x13ff26(0x1e5)]===_0x13ff26(0x215))[_0x13ff26(0x231)],'updated':_0x3fecb6['filter'](_0x322d9e=>_0x322d9e[_0x13ff26(0x1e5)]===_0x13ff26(0x1ef))[_0x13ff26(0x231)],'failed':_0x3fecb6[_0x13ff26(0x21a)](_0x1e394c=>_0x1e394c[_0x13ff26(0x1e5)]===_0x13ff26(0x221))[_0x13ff26(0x231)],'byAction':_0x1e7b53},'items':_0x3fecb6,'verification':{'performed':![],'reason':_0x13ff26(0x20d)},'warnings':_0x5a0b9d[_0x13ff26(0x1ff)]};}function attachErrorData(_0x514dc4,_0x59e74e){const _0xfa79f8=a99_0x7a4b37;Object[_0xfa79f8(0x1e4)](_0x514dc4,'data',{'value':_0x59e74e,'enumerable':!![]});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a100_0x4363(){const _0x256cda=['\x20\x20Package\x20Version:\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','cookie','\x20\x20Apps','⚠\x20Empty\x20(treated\x20as\x20{})','✗\x20Not\x20logged\x20in','Project','1121310CTimAE','\x20\x20Auth','\x20\x20Config\x20JSON','7XFpVNk','Global','apiDir','status','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','repeat','empty','\x20config','check','message','locale','length','appcode','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','1445HzFwxE','raw','join','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','log','installedPath','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','bold','ignored\x20in\x20','7OpozQO','format','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','inherit','global','skillVersion','195534gCecBP','\x20\x20Legacy\x20inherit:\x20\x20\x20','gray','unknown','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1677744OhiTTI','4487384uyyhYC','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','call','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','green','globalConfig','\x20doctor','40EZnBzH','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','packageVersion','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','source','(not\x20found)','\x20\x20Config\x20Files','\x20config\x20delete\x20inherit\x20--global','\x20\x20Skill\x20Version:\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','appCode','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','slice','accessKey','\x20+\x20','\x20config\x20delete\x20inherit','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','prototype','platform','(default)','✓\x20Valid\x20JSON','project','defaultApp','\x20(default)','✓\x20Valid','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','(default:\x20','11iAABOK','\x20\x20API\x20Endpoints','repairCommand','apps','reason','hasOwnProperty','padEnd','38918WkLUJE','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','value','(missing)','\x20\x20Built-in\x20Skill','projectConfig','state','missing','yellow','12966kIwMbY','keys','env','10308612PwEKXZ','current','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','includes','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a100_0x4363=function(){return _0x256cda;};return a100_0x4363();}const a100_0x214dba=a100_0x110a;(function(_0x18ccf0,_0x316d83){const _0x5bef9c=a100_0x110a,_0x49e012=_0x18ccf0();while(!![]){try{const _0x48f5ee=-parseInt(_0x5bef9c(0x1a7))/0x1*(parseInt(_0x5bef9c(0x1e7))/0x2)+parseInt(_0x5bef9c(0x1ae))/0x3+-parseInt(_0x5bef9c(0x1b3))/0x4+-parseInt(_0x5bef9c(0x19d))/0x5*(-parseInt(_0x5bef9c(0x1f4))/0x6)+-parseInt(_0x5bef9c(0x18e))/0x7*(-parseInt(_0x5bef9c(0x1b4))/0x8)+parseInt(_0x5bef9c(0x18b))/0x9*(parseInt(_0x5bef9c(0x1bc))/0xa)+parseInt(_0x5bef9c(0x1e0))/0xb*(-parseInt(_0x5bef9c(0x17e))/0xc);if(_0x48f5ee===_0x316d83)break;else _0x49e012['push'](_0x49e012['shift']());}catch(_0x704f1b){_0x49e012['push'](_0x49e012['shift']());}}}(a100_0x4363,0x519d2));import a100_0x3c71a8 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,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';function a100_0x110a(_0x16b822,_0x5d1b36){_0x16b822=_0x16b822-0x17d;const _0x4363b2=a100_0x4363();let _0x110a91=_0x4363b2[_0x16b822];return _0x110a91;}async function execute(_0x403e99){const _0x410775=a100_0x110a,_0x6d988f=GIT_COMMIT!==_0x410775(0x1b1)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x410775(0x1cb)](0x0,0xa)+')':VERSION,_0x5052b4=buildConfigFromFlags({}),_0x4500e2=getCookie();console[_0x410775(0x1a2)](),console['log'](a100_0x3c71a8[_0x410775(0x1a5)](CLI_BIN_NAME+_0x410775(0x1bb))),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1b0)]('─'[_0x410775(0x194)](0x32))),console[_0x410775(0x1a2)](_0x410775(0x1aa)+_0x6d988f),console[_0x410775(0x1a2)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x410775(0x1a2)](_0x410775(0x1d0)+process[_0x410775(0x1d2)]+'\x20'+process['arch']);const _0x130e96=inspectBuiltinSkill();console[_0x410775(0x1a2)](),console[_0x410775(0x1a2)](a100_0x3c71a8['bold'](_0x410775(0x1ef))),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1c0)['repeat'](0x1e)));const _0xdf2b9c=_0x130e96[_0x410775(0x1f1)]==='current'?a100_0x3c71a8[_0x410775(0x1b9)]('✓\x20'+_0x130e96['state']):a100_0x3c71a8['red']('✗\x20'+_0x130e96[_0x410775(0x1f1)]);console[_0x410775(0x1a2)](_0x410775(0x1eb)+_0xdf2b9c),console[_0x410775(0x1a2)](_0x410775(0x184)+_0x130e96[_0x410775(0x1be)]),console[_0x410775(0x1a2)](_0x410775(0x1c7)+(_0x130e96[_0x410775(0x1ad)]||a100_0x3c71a8[_0x410775(0x1b0)]('(unknown)'))),console[_0x410775(0x1a2)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x130e96[_0x410775(0x1a3)]||a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1c4))));if(_0x130e96['reason'])console['log'](_0x410775(0x1e8)+_0x130e96[_0x410775(0x1e4)]);_0x130e96[_0x410775(0x1f1)]!==_0x410775(0x17f)&&console['log'](_0x410775(0x1ea)+_0x130e96[_0x410775(0x1e2)]);console['log'](),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1a5)](_0x410775(0x1c5))),console[_0x410775(0x1a2)](a100_0x3c71a8['gray'](_0x410775(0x1c0)[_0x410775(0x194)](0x1e)));const _0x2db1ca=getGlobalConfigPath(),_0x493676=getProjectConfigPath();console[_0x410775(0x1a2)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2db1ca||a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1c4)))),console[_0x410775(0x1a2)](_0x410775(0x1bf)+(_0x493676||a100_0x3c71a8['gray'](_0x410775(0x1c4)))),console[_0x410775(0x1a2)](),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1a5)](_0x410775(0x18d))),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1b0)]('\x20\x20─'[_0x410775(0x194)](0x1e)));const _0x4cdd98=(_0x4c5f5f,_0x2ffc1b)=>{const _0x9d0012=_0x410775;if(!_0x2ffc1b){console[_0x9d0012(0x1a2)]('\x20\x20'+_0x4c5f5f[_0x9d0012(0x1e6)](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1b0)](_0x9d0012(0x193)));return;}const _0x1bb2d9=inspectCliConfigJsonFile(_0x2ffc1b);if(_0x1bb2d9[_0x9d0012(0x191)]==='ok')console[_0x9d0012(0x1a2)]('\x20\x20'+_0x4c5f5f[_0x9d0012(0x1e6)](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1b9)](_0x9d0012(0x1d4)));else{if(_0x1bb2d9[_0x9d0012(0x191)]===_0x9d0012(0x195))console[_0x9d0012(0x1a2)]('\x20\x20'+_0x4c5f5f[_0x9d0012(0x1e6)](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1f3)](_0x9d0012(0x188)));else _0x1bb2d9['status']===_0x9d0012(0x1f2)?console['log']('\x20\x20'+_0x4c5f5f[_0x9d0012(0x1e6)](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1b0)](_0x9d0012(0x1ee))):(console['log']('\x20\x20'+_0x4c5f5f['padEnd'](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1e9)](_0x9d0012(0x1dc))),console[_0x9d0012(0x1a2)]('\x20\x20'+''[_0x9d0012(0x1e6)](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1e9)](_0x1bb2d9[_0x9d0012(0x198)])));}};_0x4cdd98(_0x410775(0x18f),_0x2db1ca),_0x4cdd98(_0x410775(0x18a),_0x493676);const _0x2a5627=loadRawConfigLayers(),_0x12faf4=[Object[_0x410775(0x1d1)][_0x410775(0x1e5)][_0x410775(0x1b6)](_0x2a5627[_0x410775(0x1ba)],_0x410775(0x1ab))?_0x410775(0x1ac):null,Object[_0x410775(0x1d1)]['hasOwnProperty'][_0x410775(0x1b6)](_0x2a5627[_0x410775(0x1f0)],'inherit')?_0x410775(0x1d5):null]['filter'](Boolean);_0x12faf4['length']>0x0&&(console[_0x410775(0x1a2)](_0x410775(0x1af)+a100_0x3c71a8['yellow'](_0x410775(0x1a6)+_0x12faf4[_0x410775(0x19f)](_0x410775(0x1cd))+_0x410775(0x196))),_0x12faf4[_0x410775(0x182)](_0x410775(0x1d5))&&console['log'](_0x410775(0x1da)+CLI_BIN_NAME+_0x410775(0x1ce)),_0x12faf4[_0x410775(0x182)](_0x410775(0x1ac))&&console[_0x410775(0x1a2)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x410775(0x1c6)));console['log'](),console['log'](a100_0x3c71a8['bold']('\x20\x20Merged\x20Config')),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1c0)[_0x410775(0x194)](0x1e))),console['log'](_0x410775(0x1dd)+(_0x5052b4[_0x410775(0x1c9)]||a100_0x3c71a8[_0x410775(0x1e9)]('(not\x20set)'))),console[_0x410775(0x1a2)](_0x410775(0x1a9)+_0x5052b4[_0x410775(0x17d)]),console['log'](_0x410775(0x1b5)+_0x5052b4[_0x410775(0x199)]),console[_0x410775(0x1a2)](_0x410775(0x1db)+_0x5052b4['apiDir']),console[_0x410775(0x1a2)](_0x410775(0x1c1)+(_0x5052b4[_0x410775(0x1d6)]||a100_0x3c71a8[_0x410775(0x1b0)]('(none)'))),console[_0x410775(0x1a2)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x5052b4[_0x410775(0x181)]||a100_0x3c71a8['gray'](_0x410775(0x1de)))),console[_0x410775(0x1a2)]('\x20\x20explicitAppName:\x20'+(_0x5052b4['explicitAppName']||a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1de)))),console[_0x410775(0x1a2)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5052b4['format']||a100_0x3c71a8['gray'](_0x410775(0x1df)+DEFAULT_CONFIG_VALUES[_0x410775(0x1a8)]+')'))),console[_0x410775(0x1a2)](_0x410775(0x192)+(_0x5052b4['pageSize']??a100_0x3c71a8['gray'](_0x410775(0x1d3)))),console[_0x410775(0x1a2)](_0x410775(0x1b7)+_0x5052b4['riskLevel']),console[_0x410775(0x1a2)](_0x410775(0x180)+_0x5052b4['verbose']),console[_0x410775(0x1a2)](_0x410775(0x1b2)+(_0x5052b4[_0x410775(0x186)]?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1ec)+_0x5052b4[_0x410775(0x186)]['length']+')'):_0x4500e2?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1c2)+_0x4500e2[_0x410775(0x19a)]+')'):a100_0x3c71a8[_0x410775(0x1b0)]('(none)')));const _0x1f0ecc=Object[_0x410775(0x1f5)](_0x5052b4['apps']);if(_0x1f0ecc[_0x410775(0x19a)]>0x0){console[_0x410775(0x1a2)](),console['log'](a100_0x3c71a8[_0x410775(0x1a5)](_0x410775(0x187))),console[_0x410775(0x1a2)](a100_0x3c71a8['gray'](_0x410775(0x1c0)[_0x410775(0x194)](0x1e)));for(const _0x2d8868 of _0x1f0ecc){const _0x3beea1=_0x5052b4[_0x410775(0x1e3)][_0x2d8868],_0x2a0fd1=_0x2d8868===_0x5052b4[_0x410775(0x1d6)],_0x1569de=_0x2d8868===_0x5052b4['currentApp'],_0x155fc0=_0x1569de?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1b8)):'',_0x4b6c00=_0x2a0fd1?_0x410775(0x1d7):'';console[_0x410775(0x1a2)]('\x20\x20'+_0x2d8868+_0x4b6c00+_0x155fc0),console[_0x410775(0x1a2)](_0x410775(0x1ca)+_0x3beea1[_0x410775(0x19b)]);const _0x4fe1f4=buildAppDoctorFields(_0x3beea1,{'env':_0x5052b4[_0x410775(0x17d)],'apiDir':_0x5052b4[_0x410775(0x19e)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x410775(0x190)],'cookie':_0x5052b4[_0x410775(0x186)]||_0x4500e2||undefined,'accessKey':_0x5052b4[_0x410775(0x1cc)]});console['log'](_0x410775(0x19c)+_0x4fe1f4[_0x410775(0x17d)][_0x410775(0x1ed)]+'\x20\x20'+a100_0x3c71a8[_0x410775(0x1b0)]('('+_0x4fe1f4[_0x410775(0x17d)][_0x410775(0x1c3)]+')')),console['log'](_0x410775(0x1a0)+_0x4fe1f4['apiDir'][_0x410775(0x1ed)]+'\x20\x20'+a100_0x3c71a8[_0x410775(0x1b0)]('('+_0x4fe1f4[_0x410775(0x190)][_0x410775(0x1c3)]+')'));const _0x5cc2ec=_0x4fe1f4[_0x410775(0x186)][_0x410775(0x1ed)]?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1ec)+_0x4fe1f4[_0x410775(0x186)]['value'][_0x410775(0x19a)]+')'):a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1de));console['log'](_0x410775(0x1a4)+_0x5cc2ec+'\x20\x20'+a100_0x3c71a8[_0x410775(0x1b0)]('('+_0x4fe1f4[_0x410775(0x186)][_0x410775(0x1c3)]+')'));const _0x2e545d=_0x4fe1f4[_0x410775(0x1cc)][_0x410775(0x1ed)]?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1ec)+_0x4fe1f4['accessKey'][_0x410775(0x1ed)][_0x410775(0x19a)]+')'):a100_0x3c71a8[_0x410775(0x1b0)]('(none)');console[_0x410775(0x1a2)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x2e545d+'\x20\x20'+a100_0x3c71a8[_0x410775(0x1b0)]('('+_0x4fe1f4[_0x410775(0x1cc)][_0x410775(0x1c3)]+')'));}}console[_0x410775(0x1a2)](),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1a5)](_0x410775(0x1e1))),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1c0)[_0x410775(0x194)](0x1e))),console['log'](_0x410775(0x1d9)+getActiveRegion()),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x410775(0x1a2)](_0x410775(0x1bd)+getUserDomain()),console[_0x410775(0x1a2)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x410775(0x1a2)](_0x410775(0x185)+getSkillDomain()),console[_0x410775(0x1a2)](_0x410775(0x1a1)+getKbDomain()),console[_0x410775(0x1a2)](_0x410775(0x1cf)+getAppDomain()),console['log'](),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1a5)](_0x410775(0x18c))),console[_0x410775(0x1a2)](a100_0x3c71a8['gray'](_0x410775(0x1c0)[_0x410775(0x194)](0x1e)));if(_0x4500e2){const _0x18c1c1=await getIsSessionValid();console[_0x410775(0x1a2)](_0x410775(0x183)+(_0x18c1c1?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1d8)):a100_0x3c71a8[_0x410775(0x1e9)]('✗\x20Expired')));}else console['log'](_0x410775(0x183)+a100_0x3c71a8[_0x410775(0x1e9)](_0x410775(0x189)));return console[_0x410775(0x1a2)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a100_0x214dba(0x197),'description':a100_0x214dba(0x1c8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a100_0x5ac8e5=a100_0x2c79;(function(_0xde655d,_0x59824a){const _0x421b3b=a100_0x2c79,_0x4199f6=_0xde655d();while(!![]){try{const _0x2da591=parseInt(_0x421b3b(0x110))/0x1*(-parseInt(_0x421b3b(0x139))/0x2)+parseInt(_0x421b3b(0x105))/0x3+parseInt(_0x421b3b(0xf2))/0x4*(-parseInt(_0x421b3b(0xe1))/0x5)+-parseInt(_0x421b3b(0xec))/0x6*(parseInt(_0x421b3b(0xe4))/0x7)+-parseInt(_0x421b3b(0x12b))/0x8+-parseInt(_0x421b3b(0xdb))/0x9+parseInt(_0x421b3b(0x143))/0xa*(parseInt(_0x421b3b(0xde))/0xb);if(_0x2da591===_0x59824a)break;else _0x4199f6['push'](_0x4199f6['shift']());}catch(_0x49dba7){_0x4199f6['push'](_0x4199f6['shift']());}}}(a100_0x3f0a,0x568cb));function a100_0x2c79(_0x34cf60,_0x417333){_0x34cf60=_0x34cf60-0xd8;const _0x3f0a87=a100_0x3f0a();let _0x2c7935=_0x3f0a87[_0x34cf60];return _0x2c7935;}import a100_0x1cf4fe 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,getKbSearchDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';function a100_0x3f0a(){const _0x544a23=['10reFFpO','slice','log','\x20(default)','\x20\x20Merged\x20Config','\x20\x20skillDomain:\x20\x20\x20\x20\x20','verbose','\x20+\x20','(unknown)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','check','2109240jWeaEm','status','format','21264133MUHOVB','apiDir','apps','95rjqAke','join','value','133RJPVBA','project','(none)','(missing)','length','\x20\x20Package\x20Version:\x20','raw','message','221988eXBLCr','⚠\x20Empty\x20(treated\x20as\x20{})','keys','prototype','filter','accessKey','3484TWQOCi','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','empty','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','inherit','(not\x20set)','arch','bold','ignored\x20in\x20','✓\x20Valid\x20JSON','appcode','source','defaultApp','current','1144308qcSgBa','read','\x20\x20kbSearchDomain:\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','global','(not\x20found)','projectConfig','\x20\x20Repair\x20project:\x20\x20\x20','reason','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','128CiVZVK','✗\x20Not\x20logged\x20in','✓\x20Valid','locale','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Config\x20Files','yellow','Project','explicitAppName','missing','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','green','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','repairCommand','\x20\x20Repair\x20global:\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','env','skillVersion','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','doctor','includes','(default)','5296776HXIRHE','appCode','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','hasOwnProperty','(set,\x20length=','\x20doctor','unknown','call','riskLevel','pageSize','gray','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','padEnd','5376TpJJjH','red','state','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','repeat','cookie','\x20config\x20delete\x20inherit','✗\x20Invalid\x20JSON','globalConfig'];a100_0x3f0a=function(){return _0x544a23;};return a100_0x3f0a();}import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x408d68){const _0x5a433e=a100_0x2c79,_0x3339f5=GIT_COMMIT!==_0x5a433e(0x131)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5a433e(0x144)](0x0,0xa)+')':VERSION,_0x59710a=buildConfigFromFlags({}),_0x434eb2=getCookie();console[_0x5a433e(0x145)](),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0xfe)](CLI_BIN_NAME+_0x5a433e(0x130))),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0x135)]('─'[_0x5a433e(0x13e)](0x32))),console[_0x5a433e(0x145)](_0x5a433e(0x12d)+_0x3339f5),console[_0x5a433e(0x145)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x5a433e(0x145)](_0x5a433e(0x136)+process[_0x5a433e(0x127)]+'\x20'+process[_0x5a433e(0xfd)]);const _0x52a112=inspectBuiltinSkill();console[_0x5a433e(0x145)](),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0xfe)]('\x20\x20Built-in\x20Skill')),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0x135)]('\x20\x20─'[_0x5a433e(0x13e)](0x1e)));const _0x265353=_0x52a112[_0x5a433e(0x13b)]===_0x5a433e(0x104)?a100_0x1cf4fe[_0x5a433e(0x11c)]('✓\x20'+_0x52a112[_0x5a433e(0x13b)]):a100_0x1cf4fe[_0x5a433e(0x13a)]('✗\x20'+_0x52a112[_0x5a433e(0x13b)]);console['log'](_0x5a433e(0x14d)+_0x265353),console['log'](_0x5a433e(0xe9)+_0x52a112['packageVersion']),console[_0x5a433e(0x145)](_0x5a433e(0x137)+(_0x52a112[_0x5a433e(0x125)]||a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0x14b)))),console[_0x5a433e(0x145)](_0x5a433e(0xf4)+(_0x52a112[_0x5a433e(0x123)]||a100_0x1cf4fe[_0x5a433e(0x135)]('(not\x20found)')));if(_0x52a112['reason'])console[_0x5a433e(0x145)](_0x5a433e(0xd8)+_0x52a112[_0x5a433e(0x10e)]);_0x52a112['state']!==_0x5a433e(0x104)&&console[_0x5a433e(0x145)](_0x5a433e(0xfa)+_0x52a112[_0x5a433e(0x11f)]);console['log'](),console[_0x5a433e(0x145)](a100_0x1cf4fe['bold'](_0x5a433e(0x115))),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0xd9)[_0x5a433e(0x13e)](0x1e)));const _0x2f58e7=getGlobalConfigPath(),_0x219c99=getProjectConfigPath();console[_0x5a433e(0x145)](_0x5a433e(0x126)+(_0x2f58e7||a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0x10b)))),console[_0x5a433e(0x145)](_0x5a433e(0xf9)+(_0x219c99||a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0x10b)))),console[_0x5a433e(0x145)](),console['log'](a100_0x1cf4fe[_0x5a433e(0xfe)]('\x20\x20Config\x20JSON')),console['log'](a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0xd9)[_0x5a433e(0x13e)](0x1e)));const _0x594138=(_0x223487,_0x3e11d9)=>{const _0x23488b=_0x5a433e;if(!_0x3e11d9){console[_0x23488b(0x145)]('\x20\x20'+_0x223487['padEnd'](0x11)+'\x20'+a100_0x1cf4fe[_0x23488b(0x135)](_0x23488b(0x14e)));return;}const _0x3604c7=inspectCliConfigJsonFile(_0x3e11d9);if(_0x3604c7['status']==='ok')console['log']('\x20\x20'+_0x223487[_0x23488b(0x138)](0x11)+'\x20'+a100_0x1cf4fe[_0x23488b(0x11c)](_0x23488b(0x100)));else{if(_0x3604c7[_0x23488b(0xdc)]===_0x23488b(0xf6))console[_0x23488b(0x145)]('\x20\x20'+_0x223487[_0x23488b(0x138)](0x11)+'\x20'+a100_0x1cf4fe[_0x23488b(0x116)](_0x23488b(0xed)));else _0x3604c7[_0x23488b(0xdc)]===_0x23488b(0x119)?console[_0x23488b(0x145)]('\x20\x20'+_0x223487[_0x23488b(0x138)](0x11)+'\x20'+a100_0x1cf4fe[_0x23488b(0x135)](_0x23488b(0xe7))):(console['log']('\x20\x20'+_0x223487[_0x23488b(0x138)](0x11)+'\x20'+a100_0x1cf4fe[_0x23488b(0x13a)](_0x23488b(0x141))),console[_0x23488b(0x145)]('\x20\x20'+''[_0x23488b(0x138)](0x11)+'\x20'+a100_0x1cf4fe['red'](_0x3604c7[_0x23488b(0xeb)])));}};_0x594138('Global',_0x2f58e7),_0x594138(_0x5a433e(0x117),_0x219c99);const _0x591a0d=loadRawConfigLayers(),_0x400ebb=[Object[_0x5a433e(0xef)][_0x5a433e(0x12e)][_0x5a433e(0x132)](_0x591a0d[_0x5a433e(0x142)],_0x5a433e(0xfb))?_0x5a433e(0x10a):null,Object[_0x5a433e(0xef)]['hasOwnProperty'][_0x5a433e(0x132)](_0x591a0d[_0x5a433e(0x10c)],'inherit')?_0x5a433e(0xe5):null][_0x5a433e(0xf0)](Boolean);_0x400ebb[_0x5a433e(0xe8)]>0x0&&(console[_0x5a433e(0x145)](_0x5a433e(0x13d)+a100_0x1cf4fe[_0x5a433e(0x116)](_0x5a433e(0xff)+_0x400ebb[_0x5a433e(0xe2)](_0x5a433e(0x14a))+'\x20config')),_0x400ebb[_0x5a433e(0x129)](_0x5a433e(0xe5))&&console[_0x5a433e(0x145)](_0x5a433e(0x10d)+CLI_BIN_NAME+_0x5a433e(0x140)),_0x400ebb['includes'](_0x5a433e(0x10a))&&console[_0x5a433e(0x145)](_0x5a433e(0x120)+CLI_BIN_NAME+_0x5a433e(0x109)));console['log'](),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0xfe)](_0x5a433e(0x147))),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0x135)]('\x20\x20─'[_0x5a433e(0x13e)](0x1e))),console[_0x5a433e(0x145)](_0x5a433e(0xf7)+(_0x59710a[_0x5a433e(0x12c)]||a100_0x1cf4fe['red'](_0x5a433e(0xfc)))),console['log'](_0x5a433e(0x13c)+_0x59710a[_0x5a433e(0x124)]),console[_0x5a433e(0x145)](_0x5a433e(0xf8)+_0x59710a[_0x5a433e(0x113)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x59710a[_0x5a433e(0xdf)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x59710a[_0x5a433e(0x103)]||a100_0x1cf4fe['gray'](_0x5a433e(0xe6)))),console[_0x5a433e(0x145)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x59710a[_0x5a433e(0x11b)]||a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0xe6)))),console[_0x5a433e(0x145)]('\x20\x20explicitAppName:\x20'+(_0x59710a[_0x5a433e(0x118)]||a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0xe6)))),console[_0x5a433e(0x145)](_0x5a433e(0x122)+(_0x59710a[_0x5a433e(0xdd)]||a100_0x1cf4fe['gray'](_0x5a433e(0x11e)+DEFAULT_CONFIG_VALUES[_0x5a433e(0xdd)]+')'))),console[_0x5a433e(0x145)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x59710a[_0x5a433e(0x134)]??a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0x12a)))),console[_0x5a433e(0x145)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x59710a[_0x5a433e(0x133)]),console[_0x5a433e(0x145)](_0x5a433e(0x11d)+_0x59710a[_0x5a433e(0x149)]),console[_0x5a433e(0x145)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x59710a[_0x5a433e(0x13f)]?a100_0x1cf4fe[_0x5a433e(0x11c)](_0x5a433e(0x12f)+_0x59710a['cookie'][_0x5a433e(0xe8)]+')'):_0x434eb2?a100_0x1cf4fe[_0x5a433e(0x11c)]('(set\x20via\x20file,\x20length='+_0x434eb2['length']+')'):a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0xe6))));const _0x33e47a=Object[_0x5a433e(0xee)](_0x59710a['apps']);if(_0x33e47a['length']>0x0){console['log'](),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0xfe)]('\x20\x20Apps')),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0xd9)[_0x5a433e(0x13e)](0x1e)));for(const _0x27a44d of _0x33e47a){const _0x25e688=_0x59710a[_0x5a433e(0xe0)][_0x27a44d],_0x58ed06=_0x27a44d===_0x59710a[_0x5a433e(0x103)],_0x49a093=_0x27a44d===_0x59710a[_0x5a433e(0x11b)],_0x2ac05f=_0x49a093?a100_0x1cf4fe['green']('\x20←\x20current'):'',_0x1be3e3=_0x58ed06?_0x5a433e(0x146):'';console[_0x5a433e(0x145)]('\x20\x20'+_0x27a44d+_0x1be3e3+_0x2ac05f),console['log'](_0x5a433e(0x114)+_0x25e688[_0x5a433e(0x101)]);const _0x4217ea=buildAppDoctorFields(_0x25e688,{'env':_0x59710a[_0x5a433e(0x124)],'apiDir':_0x59710a[_0x5a433e(0xea)][_0x5a433e(0xdf)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x59710a[_0x5a433e(0x13f)]||_0x434eb2||undefined,'accessKey':_0x59710a['accessKey']});console[_0x5a433e(0x145)](_0x5a433e(0x11a)+_0x4217ea[_0x5a433e(0x124)][_0x5a433e(0xe3)]+'\x20\x20'+a100_0x1cf4fe['gray']('('+_0x4217ea[_0x5a433e(0x124)][_0x5a433e(0x102)]+')')),console['log'](_0x5a433e(0xf5)+_0x4217ea[_0x5a433e(0xdf)][_0x5a433e(0xe3)]+'\x20\x20'+a100_0x1cf4fe['gray']('('+_0x4217ea[_0x5a433e(0xdf)][_0x5a433e(0x102)]+')'));const _0x5ccc33=_0x4217ea[_0x5a433e(0x13f)][_0x5a433e(0xe3)]?a100_0x1cf4fe[_0x5a433e(0x11c)](_0x5a433e(0x12f)+_0x4217ea['cookie']['value'][_0x5a433e(0xe8)]+')'):a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0xe6));console[_0x5a433e(0x145)](_0x5a433e(0x108)+_0x5ccc33+'\x20\x20'+a100_0x1cf4fe[_0x5a433e(0x135)]('('+_0x4217ea['cookie']['source']+')'));const _0x229320=_0x4217ea[_0x5a433e(0xf1)][_0x5a433e(0xe3)]?a100_0x1cf4fe['green'](_0x5a433e(0x12f)+_0x4217ea[_0x5a433e(0xf1)]['value'][_0x5a433e(0xe8)]+')'):a100_0x1cf4fe['gray'](_0x5a433e(0xe6));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x229320+'\x20\x20'+a100_0x1cf4fe[_0x5a433e(0x135)]('('+_0x4217ea[_0x5a433e(0xf1)][_0x5a433e(0x102)]+')'));}}console['log'](),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0xfe)]('\x20\x20API\x20Endpoints')),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0x135)](_0x5a433e(0xd9)[_0x5a433e(0x13e)](0x1e))),console[_0x5a433e(0x145)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x5a433e(0x145)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x5a433e(0x14c)+getUserDomain()),console[_0x5a433e(0x145)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x5a433e(0x145)](_0x5a433e(0x148)+getSkillDomain()),console[_0x5a433e(0x145)]('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain());try{console[_0x5a433e(0x145)](_0x5a433e(0x107)+getKbSearchDomain());}catch{console[_0x5a433e(0x145)](_0x5a433e(0x107)+a100_0x1cf4fe[_0x5a433e(0x116)]('(not\x20registered)'));}console[_0x5a433e(0x145)](_0x5a433e(0x10f)+getAppDomain()),console['log'](),console[_0x5a433e(0x145)](a100_0x1cf4fe[_0x5a433e(0xfe)]('\x20\x20Auth')),console['log'](a100_0x1cf4fe['gray']('\x20\x20─'[_0x5a433e(0x13e)](0x1e)));if(_0x434eb2){const _0x2c3287=await getIsSessionValid();console[_0x5a433e(0x145)](_0x5a433e(0xf3)+(_0x2c3287?a100_0x1cf4fe['green'](_0x5a433e(0x112)):a100_0x1cf4fe[_0x5a433e(0x13a)]('✗\x20Expired')));}else console['log'](_0x5a433e(0xf3)+a100_0x1cf4fe[_0x5a433e(0x13a)](_0x5a433e(0x111)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a100_0x5ac8e5(0x128),'command':a100_0x5ac8e5(0xda),'description':a100_0x5ac8e5(0x121),'risk':a100_0x5ac8e5(0x106),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x41573a=a101_0x51af;(function(_0x7dcf53,_0x20b2d3){const _0x5dac3b=a101_0x51af,_0x555744=_0x7dcf53();while(!![]){try{const _0x45a97f=parseInt(_0x5dac3b(0x9c))/0x1+-parseInt(_0x5dac3b(0xa2))/0x2*(-parseInt(_0x5dac3b(0x86))/0x3)+-parseInt(_0x5dac3b(0x9e))/0x4+parseInt(_0x5dac3b(0xa8))/0x5*(-parseInt(_0x5dac3b(0x8c))/0x6)+parseInt(_0x5dac3b(0x91))/0x7+-parseInt(_0x5dac3b(0x93))/0x8+-parseInt(_0x5dac3b(0x99))/0x9*(-parseInt(_0x5dac3b(0xa9))/0xa);if(_0x45a97f===_0x20b2d3)break;else _0x555744['push'](_0x555744['shift']());}catch(_0x2b762e){_0x555744['push'](_0x555744['shift']());}}}(a101_0x5cb9,0x8eafc));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a101_0x51af(_0x1beb2b,_0xaee3e9){_0x1beb2b=_0x1beb2b-0x84;const _0x5cb9cd=a101_0x5cb9();let _0x51afa5=_0x5cb9cd[_0x1beb2b];return _0x51afa5;}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a101_0x5cb9(){const _0xec29dc=['POST','959091QrwgCl','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','2209152ApdhXb','bool','filepath','Uploaded\x20file:\x20','26428QHXayq','str','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Path\x20to\x20the\x20local\x20file\x20to\x20upload','trim','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','15sQgIgU','10kNpTPk','File','download','153pJGmAZ','Preview:\x20upload\x20','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','query-url','file','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','2310234GtWYzl','boolean','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','/smartapi/common/uploadFile','filePath','5909981HpQEEz','long-term','5385360ZJbYIe','appCode','\x20to\x20development\x20app\x20','path','validation','string','4389579UigxXt','read'];a101_0x5cb9=function(){return _0xec29dc;};return a101_0x5cb9();}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':'file','type':a101_0x41573a(0x98),'required':!![],'description':a101_0x41573a(0xa5)},FILEPATH_FLAG={'name':'filepath','type':a101_0x41573a(0x98),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a101_0x41573a(0x8d),'description':a101_0x41573a(0xa7)},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':a101_0x41573a(0x8b)};function requireFilePath(_0x2b3b39){const _0x789234=a101_0x41573a,_0x3a10ea=_0x2b3b39[_0x789234(0xa6)]();if(!_0x3a10ea)throw CliErrors[_0x789234(0x97)]('filePath\x20is\x20required.');return _0x3a10ea;}const fileUpload={'service':'file','command':'upload','description':a101_0x41573a(0x8e),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x4c588a){const _0x4aeeac=a101_0x41573a,_0x19e74=requireDevelopmentUploadFile(_0x4c588a[_0x4aeeac(0xa3)](_0x4aeeac(0x8a)),_0x4aeeac(0x84));return{'method':_0x4aeeac(0x9b),'url':_0x4aeeac(0x8f),'body':{'appCode':_0x4c588a[_0x4aeeac(0x94)],'multipart':{'file':_0x19e74}},'description':_0x4aeeac(0x87)+_0x19e74[_0x4aeeac(0x96)]+_0x4aeeac(0x95)+_0x4c588a[_0x4aeeac(0x94)]};},async 'execute'(_0x1f2cde){const _0x529803=a101_0x41573a,_0xd392b0=requireDevelopmentUploadFile(_0x1f2cde['str'](_0x529803(0x8a)),'File'),_0x366f9a=await uploadDevelopmentFile(_0x1f2cde[_0x529803(0x94)],_0xd392b0[_0x529803(0x96)]);return{'ok':!![],'data':_0x366f9a,'message':_0x366f9a[_0x529803(0x90)]?_0x529803(0xa1)+_0x366f9a[_0x529803(0x90)]+_0x529803(0xa4):_0x529803(0x9d)};}},fileQueryUrl={'service':a101_0x41573a(0x8a),'command':a101_0x41573a(0x89),'description':a101_0x41573a(0x88),'risk':a101_0x41573a(0x9a),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x579727){const _0x50520a=a101_0x41573a,_0x14105e=requireFilePath(_0x579727['str'](_0x50520a(0xa0))),_0x1e97e8=await queryDevelopmentFileUrl(_0x14105e,{'download':_0x579727['bool'](_0x50520a(0x85)),'longTerm':_0x579727[_0x50520a(0x9f)](_0x50520a(0x92))});return{'ok':!![],'data':_0x1e97e8};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a102_0x3f80(){const _0x3f51b7=['1BORbCP','811314QnihiF','18540408DHtCcA','11CALPzl','6485616QFgqNr','70ptFcaK','6080123GHJMUF','3958360KtCWco','6VTVDbr','269406BGbZYg','15176AzcylQ','9qeWdKl'];a102_0x3f80=function(){return _0x3f51b7;};return a102_0x3f80();}(function(_0x4ecd29,_0x1adc27){const _0x578d78=a102_0x3d7f,_0x14d27b=_0x4ecd29();while(!![]){try{const _0x56f88c=-parseInt(_0x578d78(0x19e))/0x1*(parseInt(_0x578d78(0x19b))/0x2)+parseInt(_0x578d78(0x19f))/0x3+parseInt(_0x578d78(0x19c))/0x4*(parseInt(_0x578d78(0x1a3))/0x5)+-parseInt(_0x578d78(0x1a6))/0x6*(parseInt(_0x578d78(0x1a4))/0x7)+parseInt(_0x578d78(0x1a2))/0x8*(-parseInt(_0x578d78(0x19d))/0x9)+parseInt(_0x578d78(0x1a5))/0xa+-parseInt(_0x578d78(0x1a1))/0xb*(-parseInt(_0x578d78(0x1a0))/0xc);if(_0x56f88c===_0x1adc27)break;else _0x14d27b['push'](_0x14d27b['shift']());}catch(_0x1b5384){_0x14d27b['push'](_0x14d27b['shift']());}}}(a102_0x3f80,0x6df7e));import{issueReport}from'../../commands/issue/report.js';function a102_0x3d7f(_0x2848e0,_0x285981){_0x2848e0=_0x2848e0-0x19b;const _0x3f807b=a102_0x3f80();let _0x3d7f44=_0x3f807b[_0x2848e0];return _0x3d7f44;}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103_0x3d6393=a103_0x1d32;(function(_0x1856cb,_0x4b9461){const _0x2b2012=a103_0x1d32,_0xf05c71=_0x1856cb();while(!![]){try{const _0x25c88e=parseInt(_0x2b2012(0x1c1))/0x1*(parseInt(_0x2b2012(0x1c5))/0x2)+parseInt(_0x2b2012(0x1c7))/0x3+parseInt(_0x2b2012(0x1cb))/0x4+parseInt(_0x2b2012(0x1bd))/0x5+parseInt(_0x2b2012(0x1bb))/0x6+parseInt(_0x2b2012(0x1d1))/0x7+-parseInt(_0x2b2012(0x1c4))/0x8*(parseInt(_0x2b2012(0x1b9))/0x9);if(_0x25c88e===_0x4b9461)break;else _0xf05c71['push'](_0xf05c71['shift']());}catch(_0x48cd8d){_0xf05c71['push'](_0xf05c71['shift']());}}}(a103_0x3620,0x4df68));function a103_0x1d32(_0x30343b,_0x4aaec0){_0x30343b=_0x30343b-0x1b4;const _0x362066=a103_0x3620();let _0x1d3246=_0x362066[_0x30343b];return _0x1d3246;}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';function a103_0x3620(){const _0x524e03=['18SiYOWw','=1\x20to\x20silence\x20this\x20hint.','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','7928vochvW','40874uofgYx','\x20\x20Set\x20','1399506Ntmmsc','has','service','stderr','1024084XuCzkY','not_in_project','flag_missing','unknown_command','join','code','3723146VmtRkv','auth_required','command','trim','\x20\x20\x20\x20--title\x20\x22','Hit\x20a\x20','21033qGgEiX','replace','3222792BVrMHm','cancelled','2379520cVyyIB','report','message','\x20issue\x20report\x20\x5c'];a103_0x3620=function(){return _0x524e03;};return a103_0x3620();}const NUDGE_SUPPRESSED_CODES=new Set([a103_0x3d6393(0x1bc),a103_0x3d6393(0x1b4),'config_missing',a103_0x3d6393(0x1cc),a103_0x3d6393(0x1ce),a103_0x3d6393(0x1cd),'validation_error','network_error']),defaultWriter=_0x542a36=>{const _0x56a9d8=a103_0x3d6393;process[_0x56a9d8(0x1ca)]['write'](_0x542a36);};export function shouldNudgeForError(_0x4a6e53,_0x29603c){const _0x32667f=a103_0x3d6393;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x29603c[_0x32667f(0x1c9)]==='issue'&&_0x29603c['command']===_0x32667f(0x1be))return![];if(_0x4a6e53 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x32667f(0x1c8)](_0x4a6e53[_0x32667f(0x1d0)]);return!![];}export function printIssueReportNudgeForError(_0x47d959,_0x2e8e6a,_0x1b0631=defaultWriter){if(!shouldNudgeForError(_0x47d959,_0x2e8e6a))return;const _0x2ae55d=buildSuggestedTitle(_0x47d959,_0x2e8e6a);_0x1b0631(formatNudge(_0x2ae55d));}function buildSuggestedTitle(_0x4240f1,_0x1b8e5f){const _0x53fea8=a103_0x3d6393,_0x209b27=_0x4240f1 instanceof Error?_0x4240f1[_0x53fea8(0x1bf)]:String(_0x4240f1),_0x18c959=_0x209b27[_0x53fea8(0x1ba)](/[\r\n]+/g,'\x20')[_0x53fea8(0x1ba)](/\s+/g,'\x20')[_0x53fea8(0x1b6)]()['slice'](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0xa38573=CLI_BIN_NAME+'\x20'+_0x1b8e5f['service']+'\x20'+_0x1b8e5f[_0x53fea8(0x1b5)];return _0x18c959['length']>0x0?_0xa38573+':\x20'+_0x18c959:_0xa38573;}function formatNudge(_0x24201f){const _0x3e98c8=a103_0x3d6393;return['',_0x3e98c8(0x1b8)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x3e98c8(0x1c0),_0x3e98c8(0x1b7)+_0x24201f+'\x22\x20\x5c',_0x3e98c8(0x1c3),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x3e98c8(0x1c6)+NUDGE_OPT_OUT_ENV+_0x3e98c8(0x1c2),''][_0x3e98c8(0x1cf)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104_0x4626a5=a104_0x18f0;(function(_0x39e3cc,_0x4e192c){const _0x238f48=a104_0x18f0,_0x49a85e=_0x39e3cc();while(!![]){try{const _0x5c3b77=parseInt(_0x238f48(0x1ab))/0x1+parseInt(_0x238f48(0x18d))/0x2+-parseInt(_0x238f48(0x1a1))/0x3*(-parseInt(_0x238f48(0x186))/0x4)+parseInt(_0x238f48(0x1b9))/0x5*(parseInt(_0x238f48(0x187))/0x6)+-parseInt(_0x238f48(0x190))/0x7*(-parseInt(_0x238f48(0x1b0))/0x8)+parseInt(_0x238f48(0x1bc))/0x9*(-parseInt(_0x238f48(0x19b))/0xa)+-parseInt(_0x238f48(0x193))/0xb;if(_0x5c3b77===_0x4e192c)break;else _0x49a85e['push'](_0x49a85e['shift']());}catch(_0x286e5c){_0x49a85e['push'](_0x49a85e['shift']());}}}(a104_0x171f,0x232b6));import{existsSync}from'node:fs';function a104_0x171f(){const _0x1eb0b5=['redacted\x20','issue.description_original_bytes','descriptionSource','719060rWrefL','issue.description','redactionKinds','utf8','inline','POST','793407PTKsig','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','sanitize','redactions:\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','trim','description','truncated','compress','Platform\x20issue\x20reported','232930ldWcRP','title','flagMissing','redactionCount','Failed\x20to\x20report\x20platform\x20issue:\x20','24gSTBwe','originalBytes','join','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','truncated\x20from\x20','validation','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','descriptionSource:\x20','\x20bytes','1081095RFxllF','descriptionFilePath','push','27uUSuSY','file','Issue\x20description\x20file\x20is\x20empty:\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','report','str','length','4TugkHG','6HoPcVw','File\x20not\x20found:\x20','string','cwd','One-line\x20issue\x20summary','Issue\x20description\x20cannot\x20be\x20empty.','426932ZAWWIn','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','write','388304IzzwbA','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','apiError','8071008uMoYnF','message','issue.description_redactions','descriptionFile:\x20','issue'];a104_0x171f=function(){return _0x1eb0b5;};return a104_0x171f();}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';const DESCRIPTION_FILE_FLAG='description-file';function a104_0x18f0(_0x5da0ae,_0x161b9a){_0x5da0ae=_0x5da0ae-0x186;const _0x171fa4=a104_0x171f();let _0x18f0a2=_0x171fa4[_0x5da0ae];return _0x18f0a2;}export const issueReport={'service':a104_0x4626a5(0x197),'command':a104_0x4626a5(0x1c0),'description':a104_0x4626a5(0x1b3),'risk':a104_0x4626a5(0x18f),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a104_0x4626a5(0x1a9),'flags':[{'name':'title','type':a104_0x4626a5(0x189),'required':!![],'description':a104_0x4626a5(0x18b)},{'name':a104_0x4626a5(0x1a7),'type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a104_0x4626a5(0x189),'description':a104_0x4626a5(0x18e)}],async 'validate'(_0xfbe3d2){const _0x1f3077=a104_0x4626a5,_0x2fce4f=_0xfbe3d2[_0x1f3077(0x1c1)]('title')[_0x1f3077(0x1a6)](),_0x5e0b2a=_0xfbe3d2[_0x1f3077(0x1c1)](_0x1f3077(0x1a7))[_0x1f3077(0x1a6)](),_0x56bae9=_0xfbe3d2['str'](DESCRIPTION_FILE_FLAG)[_0x1f3077(0x1a6)]();if(!_0x2fce4f)throw CliErrors[_0x1f3077(0x1ad)]('title',_0x1f3077(0x1b6));const _0x1fee50=_0x5e0b2a[_0x1f3077(0x1c2)]>0x0,_0x461918=_0x56bae9[_0x1f3077(0x1c2)]>0x0;if(_0x1fee50===_0x461918)throw CliErrors[_0x1f3077(0x1b5)](_0x1f3077(0x191),_0x1f3077(0x1bf));if(_0x461918){const _0x55d6f5=resolve(process[_0x1f3077(0x18a)](),_0x56bae9);if(!existsSync(_0x55d6f5))throw CliErrors[_0x1f3077(0x1b5)](_0x1f3077(0x188)+_0x55d6f5);}},async 'dryRun'(_0x426790){const _0x1fce4a=a104_0x4626a5,_0x3bbb33=await prepareIssueReport(_0x426790);return{'method':_0x1fce4a(0x1a0),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3bbb33['title'],'issue.description':_0x3bbb33['description'],'issue.description_original_bytes':_0x3bbb33[_0x1fce4a(0x1a3)][_0x1fce4a(0x1b1)],'issue.description_truncated':_0x3bbb33[_0x1fce4a(0x1a3)][_0x1fce4a(0x1a8)],'issue.description_redactions':_0x3bbb33[_0x1fce4a(0x1a3)][_0x1fce4a(0x1ae)],'issue.description_redaction_kinds':_0x3bbb33[_0x1fce4a(0x1a3)][_0x1fce4a(0x19d)][_0x1fce4a(0x1b2)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x1fce4a(0x1b7)+_0x3bbb33[_0x1fce4a(0x19a)],_0x3bbb33['descriptionFilePath']?_0x1fce4a(0x196)+_0x3bbb33[_0x1fce4a(0x1ba)]:null,_0x3bbb33[_0x1fce4a(0x1a3)]['truncated']?'truncated:\x20original\x20'+_0x3bbb33['sanitize'][_0x1fce4a(0x1b1)]+_0x1fce4a(0x1b8):null,_0x3bbb33[_0x1fce4a(0x1a3)]['redactionCount']>0x0?_0x1fce4a(0x1a4)+_0x3bbb33[_0x1fce4a(0x1a3)][_0x1fce4a(0x1ae)]+'\x20('+_0x3bbb33[_0x1fce4a(0x1a3)][_0x1fce4a(0x19d)][_0x1fce4a(0x1b2)](',\x20')+')':null]['filter'](Boolean)[_0x1fce4a(0x1b2)]('\x0a')};},async 'execute'(_0x4c34de){const _0x1db39d=a104_0x4626a5,_0x4fff9e=await prepareIssueReport(_0x4c34de);try{await sendPlatformIssueCollectLog({'title':_0x4fff9e[_0x1db39d(0x1ac)],'description':_0x4fff9e[_0x1db39d(0x1a7)],'sanitize':{'originalBytes':_0x4fff9e[_0x1db39d(0x1a3)][_0x1db39d(0x1b1)],'truncated':_0x4fff9e[_0x1db39d(0x1a3)][_0x1db39d(0x1a8)],'redactionCount':_0x4fff9e['sanitize']['redactionCount'],'redactionKinds':_0x4fff9e[_0x1db39d(0x1a3)][_0x1db39d(0x19d)]}});}catch(_0x326c80){throw CliErrors[_0x1db39d(0x192)](_0x1db39d(0x1af)+(_0x326c80 instanceof Error?_0x326c80[_0x1db39d(0x194)]:String(_0x326c80)),_0x1db39d(0x1a5));}return{'ok':!![],'message':buildResultMessage(_0x4fff9e[_0x1db39d(0x1a3)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x1db39d(0x19c),_0x1db39d(0x199),'issue.description_truncated',_0x1db39d(0x195),'issue.description_redaction_kinds'],'issue':{'title':_0x4fff9e[_0x1db39d(0x1ac)],'descriptionLength':_0x4fff9e[_0x1db39d(0x1a7)]['length'],'descriptionSource':_0x4fff9e[_0x1db39d(0x19a)],..._0x4fff9e[_0x1db39d(0x1ba)]?{'descriptionFile':_0x4fff9e[_0x1db39d(0x1ba)]}:{},'sanitize':{'originalBytes':_0x4fff9e[_0x1db39d(0x1a3)]['originalBytes'],'truncated':_0x4fff9e[_0x1db39d(0x1a3)][_0x1db39d(0x1a8)],'redactions':_0x4fff9e[_0x1db39d(0x1a3)][_0x1db39d(0x1ae)],'redactionKinds':_0x4fff9e[_0x1db39d(0x1a3)][_0x1db39d(0x19d)]}}}};}};function buildResultMessage(_0x344344){const _0x1327e4=a104_0x4626a5,_0x55072a=[];return _0x344344[_0x1327e4(0x1a8)]&&_0x55072a['push'](_0x1327e4(0x1b4)+_0x344344['originalBytes']+_0x1327e4(0x1b8)),_0x344344['redactionCount']>0x0&&_0x55072a[_0x1327e4(0x1bb)](_0x1327e4(0x198)+_0x344344[_0x1327e4(0x1ae)]+'\x20secret(s):\x20'+_0x344344[_0x1327e4(0x19d)][_0x1327e4(0x1b2)](',\x20')),_0x55072a[_0x1327e4(0x1c2)]===0x0?_0x1327e4(0x1aa):'Platform\x20issue\x20reported\x20('+_0x55072a[_0x1327e4(0x1b2)](';\x20')+')';}async function prepareIssueReport(_0x1eee9e){const _0x38b85e=a104_0x4626a5,_0x1346fa=_0x1eee9e[_0x38b85e(0x1c1)](_0x38b85e(0x1ac))[_0x38b85e(0x1a6)](),_0x54a099=_0x1eee9e[_0x38b85e(0x1c1)]('description'),_0x5ed8ff=_0x1eee9e[_0x38b85e(0x1c1)](DESCRIPTION_FILE_FLAG)[_0x38b85e(0x1a6)]();if(!_0x5ed8ff){const _0x49460d=_0x54a099;if(!_0x49460d[_0x38b85e(0x1a6)]())throw CliErrors['validation'](_0x38b85e(0x18c),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x24bc11=sanitizeIssueDescription(_0x49460d);return{'title':_0x1346fa,'description':_0x24bc11[_0x38b85e(0x1a7)],'descriptionSource':_0x38b85e(0x19f),'sanitize':_0x24bc11};}const _0x149bda=resolve(process[_0x38b85e(0x18a)](),_0x5ed8ff),_0x455c98=await readFile(_0x149bda,_0x38b85e(0x19e));if(!_0x455c98['trim']())throw CliErrors['validation'](_0x38b85e(0x1be)+_0x149bda,_0x38b85e(0x1a2));const _0x5d5e93=sanitizeIssueDescription(_0x455c98);return{'title':_0x1346fa,'description':_0x5d5e93[_0x38b85e(0x1a7)],'descriptionSource':_0x38b85e(0x1bd),'descriptionFilePath':_0x149bda,'sanitize':_0x5d5e93};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105_0x2a4f0e=a105_0x57e0;function a105_0x57e0(_0x21b2ea,_0x59da8f){_0x21b2ea=_0x21b2ea-0x1e5;const _0x3355fe=a105_0x3355();let _0x57e023=_0x3355fe[_0x21b2ea];return _0x57e023;}function a105_0x3355(){const _0x74e65c=['128EDIFox','slice','from','replace','length','45lUIErS','REDACTED:private-key','101208IsmTZL','REDACTED:cookie','440712IXgUMR','password','subarray','6638930ooiRzs','REDACTED:bearer-jwt','96NBXVEj','cookie','2576040qvysUT','includes','419874NEPdyJ','kind','utf8','string','push','label','7692937DoHcuX','access-key','bearer-jwt','byteLength','351060YLqFJa'];a105_0x3355=function(){return _0x74e65c;};return a105_0x3355();}(function(_0x58a75c,_0x1662bb){const _0x568aa9=a105_0x57e0,_0x3f7b26=_0x58a75c();while(!![]){try{const _0x1f28c7=parseInt(_0x568aa9(0x1fc))/0x1+-parseInt(_0x568aa9(0x1e8))/0x2+parseInt(_0x568aa9(0x1fa))/0x3*(-parseInt(_0x568aa9(0x1f3))/0x4)+parseInt(_0x568aa9(0x1f2))/0x5*(-parseInt(_0x568aa9(0x201))/0x6)+-parseInt(_0x568aa9(0x1ee))/0x7+parseInt(_0x568aa9(0x1e6))/0x8+-parseInt(_0x568aa9(0x1f8))/0x9*(-parseInt(_0x568aa9(0x1ff))/0xa);if(_0x1f28c7===_0x1662bb)break;else _0x3f7b26['push'](_0x3f7b26['shift']());}catch(_0x569e45){_0x3f7b26['push'](_0x3f7b26['shift']());}}}(a105_0x3355,0x8b3c6));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a105_0x2a4f0e(0x1e5),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a105_0x2a4f0e(0x1fb)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a105_0x2a4f0e(0x1f9)},{'kind':a105_0x2a4f0e(0x1ef),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a105_0x2a4f0e(0x1fd),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a105_0x2a4f0e(0x1f0),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a105_0x2a4f0e(0x200)}];export function sanitizeIssueDescription(_0x51e2dd){const _0x451287=a105_0x2a4f0e,_0x5c1367=Buffer['byteLength'](_0x51e2dd,'utf8'),_0x488173=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x1b5cf0=_0x51e2dd,_0x36c92a=0x0;const _0x440473=[];if(!_0x488173){const _0x53891b=protectOssAccessKeyIds(_0x1b5cf0);_0x1b5cf0=_0x53891b['description'];for(const _0x2372bc of REDACTION_RULES){let _0x278a5d=0x0;_0x1b5cf0=_0x1b5cf0[_0x451287(0x1f6)](_0x2372bc['pattern'],(_0x3644e8,_0x3d3196)=>{const _0x533735=_0x451287;_0x278a5d+=0x1;const _0x154433=typeof _0x3d3196===_0x533735(0x1eb)?_0x3d3196:'';return _0x154433+'['+_0x2372bc[_0x533735(0x1ed)]+']';}),_0x278a5d>0x0&&(_0x36c92a+=_0x278a5d,!_0x440473[_0x451287(0x1e7)](_0x2372bc[_0x451287(0x1e9)])&&_0x440473[_0x451287(0x1ec)](_0x2372bc[_0x451287(0x1e9)]));}_0x1b5cf0=_0x53891b['restore'](_0x1b5cf0);}let _0x505f7c=![];if(Buffer[_0x451287(0x1f1)](_0x1b5cf0,_0x451287(0x1ea))>ISSUE_DESCRIPTION_MAX_BYTES){_0x505f7c=!![];const _0x551234=Buffer[_0x451287(0x1f1)](TRUNCATION_NOTICE,_0x451287(0x1ea)),_0x5a28fb=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x551234);_0x1b5cf0=sliceUtf8Bytes(_0x1b5cf0,_0x5a28fb)+TRUNCATION_NOTICE;}return{'description':_0x1b5cf0,'originalBytes':_0x5c1367,'truncated':_0x505f7c,'redactionCount':_0x36c92a,'redactionKinds':_0x440473};}function protectOssAccessKeyIds(_0x506221){const _0x236706=a105_0x2a4f0e,_0x2aaacf=[],_0x6b4ccd=_0x506221[_0x236706(0x1f6)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x2c01a2,_0x349589)=>{const _0x496695=_0x236706,_0x90cbe5=_0x2aaacf[_0x496695(0x1ec)](_0x2c01a2[_0x496695(0x1f4)](_0x349589[_0x496695(0x1f7)]))-0x1;return _0x349589+'__RB_OSS_ID_'+_0x90cbe5+'__';});return{'description':_0x6b4ccd,'restore':_0x15a897=>_0x15a897['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x3a5794,_0x15884f,_0x418755)=>{const _0x553a78=_0x2aaacf[Number(_0x418755)];return _0x553a78===undefined?_0x3a5794:''+_0x15884f+_0x553a78;})};}function sliceUtf8Bytes(_0x5c8422,_0x5111d3){const _0x5f1022=a105_0x2a4f0e;if(_0x5111d3<=0x0)return'';const _0x45b35a=Buffer[_0x5f1022(0x1f5)](_0x5c8422,_0x5f1022(0x1ea));if(_0x45b35a[_0x5f1022(0x1f1)]<=_0x5111d3)return _0x5c8422;let _0x597c68=_0x5111d3;while(_0x597c68>0x0){const _0x270273=_0x45b35a[_0x597c68];if(_0x270273===undefined||(_0x270273&0xc0)!==0x80)break;_0x597c68-=0x1;}return _0x45b35a[_0x5f1022(0x1fe)](0x0,_0x597c68)['toString'](_0x5f1022(0x1ea));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a106_0xebde94=a106_0x45c2;(function(_0x2ca9f8,_0x359853){const _0x2fecde=a106_0x45c2,_0x758cb1=_0x2ca9f8();while(!![]){try{const _0x58c06a=-parseInt(_0x2fecde(0xfd))/0x1+-parseInt(_0x2fecde(0x105))/0x2+-parseInt(_0x2fecde(0xf9))/0x3+-parseInt(_0x2fecde(0xff))/0x4*(-parseInt(_0x2fecde(0xe9))/0x5)+-parseInt(_0x2fecde(0xe6))/0x6+-parseInt(_0x2fecde(0x101))/0x7+parseInt(_0x2fecde(0xe4))/0x8;if(_0x58c06a===_0x359853)break;else _0x758cb1['push'](_0x758cb1['shift']());}catch(_0x2c63a9){_0x758cb1['push'](_0x758cb1['shift']());}}}(a106_0x6725,0xc903a));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_0xebde94(0xdf);function readCreateInput(_0x28a0b6){const _0x312dbf=a106_0xebde94,_0x1dea14=_0x28a0b6['str'](_0x312dbf(0x104))[_0x312dbf(0xfa)]();if(!_0x1dea14)throw kbError(_0x312dbf(0xf8),_0x312dbf(0xf1));const _0x1427d7=_0x28a0b6['str'](_0x312dbf(0xe7))[_0x312dbf(0xfa)]();if(!_0x1427d7)throw kbError(_0x312dbf(0xf5),_0x312dbf(0xed),'Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.');return{'title':_0x1dea14,'file':_0x1427d7};}async function prepareCreate(_0x381e31){const _0x352a46=a106_0xebde94,_0xd9bb8d=readCreateInput(_0x381e31),_0x1f3545=await readKbFile(_0xd9bb8d[_0x352a46(0xe7)]),_0x380e05=await fetchAllCompanyKnowledgeBases(_0x381e31,{'title':_0xd9bb8d[_0x352a46(0x104)]}),_0x57a93b=findExactCompanyKnowledgeBases(_0x380e05,_0x381e31['appCode'],_0xd9bb8d['title']);if(_0x57a93b[_0x352a46(0x106)]>0x0)throw kbError(_0x352a46(0x100),_0x352a46(0xfc)+_0x381e31[_0x352a46(0xea)]+_0x352a46(0xeb)+_0xd9bb8d['title']+'.','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x57a93b[0x0]['id']+_0x352a46(0x103));return{..._0xd9bb8d,'content':_0x1f3545};}function plannedAfter(_0x5bbd19,_0xd0677b){const _0x5b04f7=a106_0xebde94;return{'scope':_0x5b04f7(0xe1),'appCode':_0x5bbd19['appCode'],'title':_0xd0677b['title'],'contentByteSize':_0xd0677b['content']['byteSize'],'contentHash':_0xd0677b['content'][_0x5b04f7(0xf2)]};}function verifyCreatedState(_0x1af7f6,_0x15c640,_0x2440e4){const _0x23d29f=a106_0xebde94;assertCompanyKnowledgeBase(_0x2440e4,_0x1af7f6[_0x23d29f(0xea)],_0x2440e4['id']);const _0x1fa410=inspectKbContent(_0x2440e4[_0x23d29f(0xf0)]);if(_0x2440e4[_0x23d29f(0x104)]!==_0x15c640[_0x23d29f(0x104)]||_0x1fa410[_0x23d29f(0xf2)]!==_0x15c640['content']['contentHash'])throw kbError(_0x23d29f(0xef),'Company\x20knowledge\x20base\x20'+_0x2440e4['id']+_0x23d29f(0xec),_0x23d29f(0xe3)+_0x2440e4['id']+_0x23d29f(0x108));return projectKb(_0x2440e4);}export const kbCreate={'service':'kb','command':a106_0xebde94(0xfb),'description':a106_0xebde94(0xe5),'risk':a106_0xebde94(0xdd),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'title','type':'string','required':!![],'description':a106_0xebde94(0x109)},{'name':a106_0xebde94(0xe7),'type':a106_0xebde94(0xf4),'required':!![],'description':'UTF-8\x20text\x20or\x20Markdown\x20content\x20file'}],async 'validate'(_0x2ef0cd){readCreateInput(_0x2ef0cd);},async 'dryRun'(_0x1843b0){const _0x22943d=a106_0xebde94,_0x3c9daa=await prepareCreate(_0x1843b0);return asDryRunResult({'operation':_0x22943d(0xfb),'selector':{'scope':'company','appCode':_0x1843b0[_0x22943d(0xea)],'title':_0x3c9daa['title']},'before':null,'after':plannedAfter(_0x1843b0,_0x3c9daa),'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x22943d(0xe0)+JSON[_0x22943d(0xee)](_0x3c9daa[_0x22943d(0x104)])+_0x22943d(0xde)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0xb6d122){const _0x2e4f05=a106_0xebde94,_0x461565=await prepareCreate(_0xb6d122);let _0x1e6283,_0x58954f=![];try{const _0x40b89d=await createEnterpriseKnowledgeBase(_0xb6d122[_0x2e4f05(0x102)],{'appCode':_0xb6d122[_0x2e4f05(0xea)],'title':_0x461565['title'],'content':_0x461565[_0x2e4f05(0xf0)][_0x2e4f05(0xf0)]});assertCompanyKnowledgeBase(_0x40b89d,_0xb6d122[_0x2e4f05(0xea)],_0x40b89d['id']),_0x1e6283=_0x40b89d['id'];}catch(_0x36a445){if(!isPlatformTransportFailure(_0x36a445))throw _0x36a445;_0x58954f=!![];}if(_0x1e6283===undefined){const _0x34f45d=await verifyKbMutationReadback(_0x2e4f05(0xfb),!![],()=>fetchAllCompanyKnowledgeBases(_0xb6d122,{'title':_0x461565[_0x2e4f05(0x104)]})),_0x330b70=findExactCompanyKnowledgeBases(_0x34f45d,_0xb6d122['appCode'],_0x461565[_0x2e4f05(0x104)]);if(_0x330b70['length']!==0x1)throw kbError('kb_create_outcome_unknown',_0x2e4f05(0xe2)+_0x330b70['length']+'.',_0x2e4f05(0xe8));_0x1e6283=_0x330b70[0x0]['id'];}const _0x592254=await verifyKbMutationReadback(_0x2e4f05(0xfb),_0x58954f,()=>requireKb(_0xb6d122,_0x1e6283)),_0xc4a6e6=verifyCreatedState(_0xb6d122,_0x461565,_0x592254),_0x851901=_0x58954f?[_0x2e4f05(0xfe)]:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0xc4a6e6['id'],'scope':_0x2e4f05(0xe1),'appCode':_0xc4a6e6['appCode']},'before':null,'after':_0xc4a6e6,'dryRun':![],'backend':{'method':_0x2e4f05(0xf3),'path':CREATE_PATH},'warnings':_0x851901,'verification':{'status':_0x2e4f05(0x107),'recoveredAfterUnknownResponse':_0x58954f,'lookupCommand':_0x2e4f05(0xf6)+_0xc4a6e6['id']+_0x2e4f05(0xde)}},'message':_0x2e4f05(0xf7)+_0xc4a6e6['id']+'\x20for\x20'+_0xc4a6e6['appCode']};}};function a106_0x45c2(_0x485f8d,_0x329d61){_0x485f8d=_0x485f8d-0xdd;const _0x6725b5=a106_0x6725();let _0x45c247=_0x6725b5[_0x485f8d];return _0x45c247;}function a106_0x6725(){const _0x166241=['Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','4251190kVplhK','appCode','\x20with\x20title\x20','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','--file\x20is\x20required.','stringify','kb_verification_failed','content','--title\x20is\x20required.','contentHash','POST','string','kb_file_required','rabetbase\x20kb\x20detail\x20--id\x20','Created\x20company\x20knowledge\x20base\x20','kb_title_required','4557711hdjKWC','trim','create','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','588224aoIBlh','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','4EFPLke','kb_already_exists','669046stygdQ','cookie','\x20--format\x20compress`\x20before\x20choosing\x20update.','title','1258300HXMfnu','length','verified','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','Knowledge-base\x20title','write','\x20--format\x20compress','/admin/knowledge-base/create','rabetbase\x20kb\x20list\x20--title\x20','company','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','32312240THSnZh','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','7402350aHfZkc','file'];a106_0x6725=function(){return _0x166241;};return a106_0x6725();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0x2e86c3=a107_0xc4ac;(function(_0x356a79,_0x2305ea){const _0x26e1bd=a107_0xc4ac,_0x278d22=_0x356a79();while(!![]){try{const _0x1b5501=-parseInt(_0x26e1bd(0x14a))/0x1+-parseInt(_0x26e1bd(0x14c))/0x2*(parseInt(_0x26e1bd(0x143))/0x3)+-parseInt(_0x26e1bd(0x141))/0x4*(parseInt(_0x26e1bd(0x144))/0x5)+parseInt(_0x26e1bd(0x135))/0x6+parseInt(_0x26e1bd(0x153))/0x7+-parseInt(_0x26e1bd(0x151))/0x8*(-parseInt(_0x26e1bd(0x15a))/0x9)+-parseInt(_0x26e1bd(0x156))/0xa*(parseInt(_0x26e1bd(0x14e))/0xb);if(_0x1b5501===_0x2305ea)break;else _0x278d22['push'](_0x278d22['shift']());}catch(_0xa9faa2){_0x278d22['push'](_0x278d22['shift']());}}}(a107_0x1310,0x64adb));import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';function a107_0xc4ac(_0x163ddd,_0x352bb9){_0x163ddd=_0x163ddd-0x135;const _0x1310ee=a107_0x1310();let _0xc4ac6b=_0x1310ee[_0x163ddd];return _0xc4ac6b;}const DELETE_PATH=a107_0x2e86c3(0x138),RAG_WARNING=a107_0x2e86c3(0x155),NON_ATOMIC_WARNING=a107_0x2e86c3(0x149);function readExpectedVersion(_0x282077){const _0x36550e=a107_0x2e86c3,_0x1bc0a1=_0x282077[_0x36550e(0x148)](_0x36550e(0x13e));if(_0x1bc0a1===undefined)return undefined;const _0x4a93c7=Number(_0x1bc0a1);if(!Number[_0x36550e(0x157)](_0x4a93c7)||_0x4a93c7<0x0)throw kbError('kb_expected_version_invalid',_0x36550e(0x14b));return _0x4a93c7;}function a107_0x1310(){const _0x580095=['company','6399688KPEGhc','number','4569411PLECQj','delete','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','20Yhrwpk','isSafeInteger','kb_delete_outcome_unknown','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','9OUhxWh','already_absent','2170254oROBsD','rabetbase\x20kb\x20detail\x20--id\x20','Company\x20knowledge-base\x20id','/admin/knowledge-base/delete','\x20--format\x20compress','no_op','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','cookie','snapshotHash','expected-version','\x20remains\x20readable\x20after\x20delete.','POST','4CQIBsN','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','2406SALABI','3994225PjeUVj','Company\x20knowledge\x20base\x20','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','verified','flag','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','253539utNEdw','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','718ctxaDu','appCode','339691Wiiwzt','unshift'];a107_0x1310=function(){return _0x580095;};return a107_0x1310();}function noOpData(_0xce662c,_0x555c13,_0x5d6d1f){const _0x5f1ae5=a107_0x2e86c3;return{'operation':_0x5f1ae5(0x13a),'selector':{'id':_0x555c13,'scope':_0x5f1ae5(0x150),'appCode':_0xce662c[_0x5f1ae5(0x14d)]},'before':null,'after':null,'dryRun':_0x5d6d1f,'deleteCalled':![],'backend':{'method':_0x5f1ae5(0x140),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x5f1ae5(0x15b),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a107_0x2e86c3(0x154),'description':a107_0x2e86c3(0x13b),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a107_0x2e86c3(0x152),'required':!![],'description':a107_0x2e86c3(0x137)},{'name':a107_0x2e86c3(0x13e),'type':'number','required':![],'description':'Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version'}],async 'validate'(_0x25a627){readKbId(_0x25a627),readExpectedVersion(_0x25a627),requireKbExplicitYes(_0x25a627);},async 'dryRun'(_0x57686a){const _0x16c87f=a107_0x2e86c3,_0x497fd3=readKbId(_0x57686a),_0x552abb=readExpectedVersion(_0x57686a),_0x50bb50=await getKbOrNull(_0x57686a,_0x497fd3);if(!_0x50bb50)return asDryRunResult(noOpData(_0x57686a,_0x497fd3,!![]),{'method':_0x16c87f(0x140),'url':DELETE_PATH});assertExpectedKbVersion(_0x50bb50,_0x552abb);const _0x3bdc8f=projectKb(_0x50bb50),_0x3b9f24=[RAG_WARNING];if(_0x552abb!==undefined)_0x3b9f24[_0x16c87f(0x14f)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x16c87f(0x154),'selector':{'id':_0x3bdc8f['id'],'scope':_0x16c87f(0x150),'appCode':_0x3bdc8f[_0x16c87f(0x14d)]},'before':_0x3bdc8f,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x16c87f(0x140),'path':DELETE_PATH},'warnings':_0x3b9f24,'verification':{'expectedVersion':_0x552abb??null,'atomicCompareAndSet':![],'snapshotHash':_0x3bdc8f[_0x16c87f(0x13d)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x16c87f(0x136)+_0x3bdc8f['id']+_0x16c87f(0x139)}},{'method':_0x16c87f(0x140),'url':DELETE_PATH});},async 'execute'(_0x1d850a){const _0x3be939=a107_0x2e86c3;requireKbExplicitYes(_0x1d850a);const _0x126ca3=readKbId(_0x1d850a),_0x4708f7=readExpectedVersion(_0x1d850a),_0x214b18=await getKbOrNull(_0x1d850a,_0x126ca3);if(!_0x214b18)return{'ok':!![],'data':noOpData(_0x1d850a,_0x126ca3,![]),'message':_0x3be939(0x145)+_0x126ca3+_0x3be939(0x159)};assertExpectedKbVersion(_0x214b18,_0x4708f7);const _0x426efc=projectKb(_0x214b18);let _0x4dc3b0=![];try{await deleteEnterpriseKnowledgeBase(_0x1d850a[_0x3be939(0x13c)],_0x126ca3);}catch(_0x34a26b){if(!isPlatformTransportFailure(_0x34a26b))throw _0x34a26b;_0x4dc3b0=!![];}const _0x5c3c0c=await verifyKbMutationReadback(_0x3be939(0x154),_0x4dc3b0,()=>getKbOrNull(_0x1d850a,_0x126ca3));if(_0x5c3c0c)throw kbError(_0x4dc3b0?_0x3be939(0x158):'kb_verification_failed',_0x3be939(0x145)+_0x126ca3+_0x3be939(0x13f),_0x3be939(0x142)+_0x126ca3+_0x3be939(0x146));const _0x1cb105=[RAG_WARNING];if(_0x4708f7!==undefined)_0x1cb105[_0x3be939(0x14f)](NON_ATOMIC_WARNING);return _0x4dc3b0&&_0x1cb105['unshift']('Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':'delete','selector':{'id':_0x426efc['id'],'scope':'company','appCode':_0x426efc[_0x3be939(0x14d)]},'before':_0x426efc,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x3be939(0x140),'path':DELETE_PATH},'warnings':_0x1cb105,'verification':{'status':_0x3be939(0x147),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x4dc3b0,'lookupCommand':_0x3be939(0x136)+_0x426efc['id']+_0x3be939(0x139)}},'message':'Soft-deleted\x20company\x20knowledge\x20base\x20'+_0x426efc['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108_0x16cea6=a108_0x5816;function a108_0x5a93(){const _0x14a5ad=['6ZctAsQ','Company\x20knowledge-base\x20id','1210DSFAfX','1236128fhdpBj','969774IkNUBj','1714518Elxhfi','Loaded\x20company\x20knowledge\x20base\x20','read','105693OEbbSm','detail','895850JubFWS','779680DFenlB','572IfzNjA','8wDTJkb'];a108_0x5a93=function(){return _0x14a5ad;};return a108_0x5a93();}(function(_0x44520f,_0x311a11){const _0x408670=a108_0x5816,_0x2ac5e6=_0x44520f();while(!![]){try{const _0x2cac79=-parseInt(_0x408670(0x128))/0x1*(-parseInt(_0x408670(0x124))/0x2)+parseInt(_0x408670(0x12a))/0x3+-parseInt(_0x408670(0x129))/0x4+parseInt(_0x408670(0x131))/0x5*(parseInt(_0x408670(0x126))/0x6)+parseInt(_0x408670(0x12e))/0x7*(-parseInt(_0x408670(0x125))/0x8)+-parseInt(_0x408670(0x12b))/0x9+-parseInt(_0x408670(0x130))/0xa;if(_0x2cac79===_0x311a11)break;else _0x2ac5e6['push'](_0x2ac5e6['shift']());}catch(_0x2bba10){_0x2ac5e6['push'](_0x2ac5e6['shift']());}}}(a108_0x5a93,0x35f6c));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';function a108_0x5816(_0x3277e8,_0x267d9a){_0x3277e8=_0x3277e8-0x124;const _0x5a9324=a108_0x5a93();let _0x581645=_0x5a9324[_0x3277e8];return _0x581645;}export const kbDetail={'service':'kb','command':a108_0x16cea6(0x12f),'description':'Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','risk':a108_0x16cea6(0x12d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':a108_0x16cea6(0x127)}],async 'validate'(_0x3f0c73){readKbId(_0x3f0c73);},async 'execute'(_0x1db213){const _0x3b25d9=a108_0x16cea6,_0x222a76=readKbId(_0x1db213),_0x1e9b57=await requireKb(_0x1db213,_0x222a76);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x1e9b57)},'message':_0x3b25d9(0x12c)+_0x222a76};}};
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52f4e6,_0x1d63ee){const _0x8c7075=a109_0x2695,_0x55a13a=_0x52f4e6();while(!![]){try{const _0x4217c1=-parseInt(_0x8c7075(0x1bc))/0x1*(parseInt(_0x8c7075(0x1be))/0x2)+parseInt(_0x8c7075(0x1bd))/0x3+parseInt(_0x8c7075(0x1c0))/0x4*(parseInt(_0x8c7075(0x1ba))/0x5)+parseInt(_0x8c7075(0x1bb))/0x6+parseInt(_0x8c7075(0x1c3))/0x7*(-parseInt(_0x8c7075(0x1c1))/0x8)+-parseInt(_0x8c7075(0x1bf))/0x9+-parseInt(_0x8c7075(0x1c2))/0xa;if(_0x4217c1===_0x1d63ee)break;else _0x55a13a['push'](_0x55a13a['shift']());}catch(_0x26b670){_0x55a13a['push'](_0x55a13a['shift']());}}}(a109_0x5c05,0xa5de2));import{kbList}from'../../commands/kb/list.js';function a109_0x5c05(){const _0x5f2135=['13704qchjyV','16849090TLrXom','252GPkcBK','6514015KdBOKo','7696668PmwXTP','7KMmrDw','2389542UbMRQN','9062zRfJGW','8319663ACtKKF','4vmtIYO'];a109_0x5c05=function(){return _0x5f2135;};return a109_0x5c05();}function a109_0x2695(_0x581df7,_0x126bdb){_0x581df7=_0x581df7-0x1ba;const _0x5c05f5=a109_0x5c05();let _0x269531=_0x5c05f5[_0x581df7];return _0x269531;}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';import{kbDelete}from'../../commands/kb/delete.js';export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete];
|
package/lib/commands/kb/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a110_0x39ea(){const _0x49a73c=['length','2729967TNjMQx','1775223yIYgte','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','26yQZWHB','84362wqYdfN','str','15720ZgQTMK','trim','title','Found\x20','11405840EkdFoL','1070wALYnM','2705262UXGtFB','read','Filter\x20by\x20knowledge-base\x20title','1235372IChplj','list'];a110_0x39ea=function(){return _0x49a73c;};return a110_0x39ea();}const a110_0x520938=a110_0x2226;(function(_0x3fea09,_0x11be8a){const _0x517bf9=a110_0x2226,_0xdf0b8e=_0x3fea09();while(!![]){try{const _0x436ba5=parseInt(_0x517bf9(0xe7))/0x1*(parseInt(_0x517bf9(0xe6))/0x2)+-parseInt(_0x517bf9(0xe3))/0x3+parseInt(_0x517bf9(0xf2))/0x4+-parseInt(_0x517bf9(0xee))/0x5*(parseInt(_0x517bf9(0xe9))/0x6)+-parseInt(_0x517bf9(0xef))/0x7+parseInt(_0x517bf9(0xed))/0x8+-parseInt(_0x517bf9(0xe4))/0x9;if(_0x436ba5===_0x11be8a)break;else _0xdf0b8e['push'](_0xdf0b8e['shift']());}catch(_0x2ca16e){_0xdf0b8e['push'](_0xdf0b8e['shift']());}}}(a110_0x39ea,0xbdac1));function a110_0x2226(_0x49307c,_0x41585c){_0x49307c=_0x49307c-0xe2;const _0x39ea3c=a110_0x39ea();let _0x222643=_0x39ea3c[_0x49307c];return _0x222643;}import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':a110_0x520938(0xf3),'description':a110_0x520938(0xe5),'risk':a110_0x520938(0xf0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a110_0x520938(0xeb),'type':'string','required':![],'description':a110_0x520938(0xf1)}],async 'execute'(_0x8787b8){const _0x53bba5=a110_0x520938,_0x539053=_0x8787b8[_0x53bba5(0xe8)]('title')[_0x53bba5(0xea)](),_0x5d75ba=await fetchAllCompanyKnowledgeBases(_0x8787b8,{..._0x539053?{'title':_0x539053}:{}}),_0x548306=_0x5d75ba['map'](projectKb);return{'ok':!![],'data':{'total':_0x548306[_0x53bba5(0xe2)],'knowledgeBases':_0x548306},'message':_0x53bba5(0xec)+_0x548306[_0x53bba5(0xe2)]+'\x20company\x20knowledge\x20base(s)\x20for\x20'+_0x8787b8['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x329b51=a111_0xc40e;(function(_0x1da79c,_0x42773d){const _0x54ec26=a111_0xc40e,_0x463c43=_0x1da79c();while(!![]){try{const _0x321c62=-parseInt(_0x54ec26(0x1c6))/0x1*(-parseInt(_0x54ec26(0x1b8))/0x2)+parseInt(_0x54ec26(0x1b5))/0x3*(-parseInt(_0x54ec26(0x1c2))/0x4)+-parseInt(_0x54ec26(0x1c8))/0x5+parseInt(_0x54ec26(0x1cd))/0x6+-parseInt(_0x54ec26(0x1c4))/0x7+-parseInt(_0x54ec26(0x1bd))/0x8*(-parseInt(_0x54ec26(0x1d0))/0x9)+parseInt(_0x54ec26(0x1c3))/0xa;if(_0x321c62===_0x42773d)break;else _0x463c43['push'](_0x463c43['shift']());}catch(_0x12ad9d){_0x463c43['push'](_0x463c43['shift']());}}}(a111_0x3a19,0x25cb4));import{searchDevelopmentKnowledge}from'../../core/kb-search-client.js';function a111_0x3a19(){const _0x48a67b=['isSafeInteger','query','1533792AKvjwM','appCode','read','1980666YkcjFu','6117UOHFXV','str','number','510ezatoi','num','Found\x20','Company\x20and\x20public\x20knowledge\x20search\x20query','validation','8ATmAnU','search','topk','total','Search\x20query\x20is\x20required.','468lFRzWW','17700GEykMh','2114000MXqsnI','signal','941ZRxHol','\x20company/public\x20knowledge\x20hit(s)\x20for\x20','110320EXAito','Maximum\x20number\x20of\x20knowledge\x20hits\x20to\x20return','Search\x20company\x20and\x20public\x20knowledge\x20for\x20the\x20resolved\x20app'];a111_0x3a19=function(){return _0x48a67b;};return a111_0x3a19();}import{CliErrors}from'../../errors.js';function readSearchQuery(_0xe6a6d0){const _0x4f2d53=a111_0xc40e,_0x19d70c=_0xe6a6d0[_0x4f2d53(0x1b6)](_0x4f2d53(0x1cc))['trim']();if(!_0x19d70c)throw CliErrors['validation'](_0x4f2d53(0x1c1));return _0x19d70c;}function readSearchTopK(_0x3ce05e){const _0x23abaf=a111_0xc40e,_0x487bea=_0x3ce05e['flag'](_0x23abaf(0x1bf));if(_0x487bea===undefined||_0x487bea===null||_0x487bea==='')return undefined;const _0x5bea17=_0x3ce05e[_0x23abaf(0x1b9)](_0x23abaf(0x1bf));if(!Number[_0x23abaf(0x1cb)](_0x5bea17)||_0x5bea17<0x1||_0x5bea17>0x32)throw CliErrors[_0x23abaf(0x1bc)]('--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.');return _0x5bea17;}function a111_0xc40e(_0x3fb4dd,_0x19087d){_0x3fb4dd=_0x3fb4dd-0x1b5;const _0x3a19f5=a111_0x3a19();let _0xc40ed5=_0x3a19f5[_0x3fb4dd];return _0xc40ed5;}export const kbSearch={'service':'kb','command':a111_0x329b51(0x1be),'description':a111_0x329b51(0x1ca),'risk':a111_0x329b51(0x1cf),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'query','type':'string','required':!![],'description':a111_0x329b51(0x1bb)},{'name':a111_0x329b51(0x1bf),'type':a111_0x329b51(0x1b7),'required':![],'description':a111_0x329b51(0x1c9)}],async 'validate'(_0x1b3078){readSearchQuery(_0x1b3078),readSearchTopK(_0x1b3078);},async 'execute'(_0x37014a){const _0x18b17b=a111_0x329b51,_0x2b2d5a=readSearchQuery(_0x37014a),_0x17b83a=readSearchTopK(_0x37014a),_0x69ea8a=await searchDevelopmentKnowledge({'cookie':_0x37014a['cookie'],'query':_0x2b2d5a,'appCode':_0x37014a['appCode'],..._0x17b83a!==undefined?{'topK':_0x17b83a}:{},'signal':_0x37014a[_0x18b17b(0x1c5)]});return{'ok':!![],'data':_0x69ea8a,'message':_0x18b17b(0x1ba)+_0x69ea8a[_0x18b17b(0x1c0)]+_0x18b17b(0x1c7)+_0x37014a[_0x18b17b(0x1ce)]};}};
|