@lovrabet/rabetbase-cli 2.3.15-beta.2 → 2.3.16-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- 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/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/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.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/get.js +1 -1
- package/lib/commands/config/index.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/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.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-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/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.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/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/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 -0
- package/lib/commands/kb/delete.js +1 -0
- package/lib/commands/kb/detail.js +1 -0
- package/lib/commands/kb/index.js +1 -0
- package/lib/commands/kb/list.js +1 -0
- package/lib/commands/kb/shared.js +1 -0
- package/lib/commands/kb/update.js +1 -0
- 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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.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/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/non-interactive.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/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.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/save.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/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.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 -0
- 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/copy-directory.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/rules-cdn.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
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a188_0x14ede3=a188_0x3066;(function(_0x243b9d,_0x189d1f){const _0x3b8ae9=a188_0x3066,_0x4e55f2=_0x243b9d();while(!![]){try{const _0xbcbd67=-parseInt(_0x3b8ae9(0xff))/0x1*(-parseInt(_0x3b8ae9(0x135))/0x2)+parseInt(_0x3b8ae9(0x112))/0x3+parseInt(_0x3b8ae9(0x126))/0x4+-parseInt(_0x3b8ae9(0x11b))/0x5+-parseInt(_0x3b8ae9(0x137))/0x6*(-parseInt(_0x3b8ae9(0x11a))/0x7)+parseInt(_0x3b8ae9(0x134))/0x8*(parseInt(_0x3b8ae9(0x101))/0x9)+-parseInt(_0x3b8ae9(0x10b))/0xa;if(_0xbcbd67===_0x189d1f)break;else _0x4e55f2['push'](_0x4e55f2['shift']());}catch(_0x26c969){_0x4e55f2['push'](_0x4e55f2['shift']());}}}(a188_0x2fdd,0x25dee));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a188_0x2fdd(){const _0x3a10=['2549799zkUghX','columns','schema:','flagMissing','pkField','Dataset\x20\x22','split','dbtableConfig','map','name','4851730aurUUe','Provide\x20--file\x20or\x20--sql','primary','schemaWarnings','push','unshift','toLowerCase','793488OoKRDV','find','type','str','length','check-indexes','sql','get','7klhBci','1372935baYCdz','fields','appCode','bool','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','valid','filter','Table\x20\x22','indexName','utf-8','message','1111492aizQWW','trim','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','file','index_columns','string','cwd','columnNames','parameters','schemas','read','isArray','reason','File\x20not\x20found:\x20','8ERMrWY','2mCXmoY','validate','327282YySrOa','flatMap','--check-indexes\x20requires\x20--schemas.','tables','validation','sqlType','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','index_type','tableName','indexes','isDangerous','34651VvLeQD','SQL\x20schema\x20validation'];a188_0x2fdd=function(){return _0x3a10;};return a188_0x2fdd();}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a188_0x3066(_0x28dd54,_0x33458d){_0x28dd54=_0x28dd54-0xfe;const _0x2fdd84=a188_0x2fdd();let _0x3066f5=_0x2fdd84[_0x28dd54];return _0x3066f5;}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a188_0x14ede3(0x118),'command':a188_0x14ede3(0x136),'description':a188_0x14ede3(0x13d),'risk':a188_0x14ede3(0x130),'flags':[{'name':a188_0x14ede3(0x129),'type':a188_0x14ede3(0x12b),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a188_0x14ede3(0x118),'type':a188_0x14ede3(0x12b),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a188_0x14ede3(0x12f),'type':'string','description':a188_0x14ede3(0x11f)},{'name':a188_0x14ede3(0x117),'type':'boolean','description':a188_0x14ede3(0x128)}],async 'execute'(_0x299795){const _0x29d3fc=a188_0x14ede3,_0x1bbb1d=_0x299795['str'](_0x29d3fc(0x129)),_0x3fe9b0=_0x299795[_0x29d3fc(0x115)](_0x29d3fc(0x118)),_0x57771b=_0x299795[_0x29d3fc(0x115)]('schemas'),_0x4c61b3=_0x299795[_0x29d3fc(0x11e)]('check-indexes');if(!_0x1bbb1d&&!_0x3fe9b0)throw CliErrors[_0x29d3fc(0x104)](_0x29d3fc(0x129),_0x29d3fc(0x10c));if(_0x4c61b3&&!_0x57771b)throw CliErrors[_0x29d3fc(0x13b)](_0x29d3fc(0x139));let _0x43a001;if(_0x1bbb1d){const _0x4e0fa5=resolve(process[_0x29d3fc(0x12c)](),_0x1bbb1d);if(!existsSync(_0x4e0fa5))throw CliErrors[_0x29d3fc(0x13b)](_0x29d3fc(0x133)+_0x4e0fa5);_0x43a001=readFileSync(_0x4e0fa5,_0x29d3fc(0x124));}else _0x43a001=_0x3fe9b0;const _0x3024da=validateSql(_0x43a001),_0x13968e={'valid':_0x3024da[_0x29d3fc(0x120)],'sqlType':_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0x114)],'isSelectOnly':_0x3024da[_0x29d3fc(0x13c)]['isSelectOnly'],'isDangerous':_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0xfe)],'tables':_0x3024da[_0x29d3fc(0x13a)],'parameters':_0x3024da[_0x29d3fc(0x12e)],'message':_0x3024da[_0x29d3fc(0x125)]};_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0x132)]&&(_0x13968e[_0x29d3fc(0x132)]=_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0x132)]);if(_0x57771b&&_0x3024da[_0x29d3fc(0x120)]){const _0x4f1a7a=_0x57771b[_0x29d3fc(0x107)](',')['map'](_0x5b4ad5=>_0x5b4ad5[_0x29d3fc(0x127)]())[_0x29d3fc(0x121)](Boolean),_0x1359d2=[],_0x1a832d=[],_0x2957bd=filterDbTableBackedDatasets(await listDatasets(_0x299795[_0x29d3fc(0x11d)])),_0x23f218=new Map(_0x2957bd[_0x29d3fc(0x109)](_0x32969a=>[_0x32969a['dbtableConfig']?.[_0x29d3fc(0x13f)]?.[_0x29d3fc(0x111)](),_0x32969a]));for(const _0x19b117 of _0x3024da[_0x29d3fc(0x13a)]){const _0x34eca4=_0x23f218[_0x29d3fc(0x119)](_0x19b117[_0x29d3fc(0x111)]());!_0x34eca4&&_0x1359d2[_0x29d3fc(0x10f)](_0x29d3fc(0x122)+_0x19b117+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0xcef791 of _0x4f1a7a){let _0x392acf;try{_0x392acf=await getDatasetDetail(_0xcef791);}catch{_0x1359d2[_0x29d3fc(0x10f)](_0x29d3fc(0x106)+_0xcef791+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x392acf,_0x29d3fc(0x100));const _0x587d9d=Array[_0x29d3fc(0x131)](_0x392acf[_0x29d3fc(0x11c)])?_0x392acf[_0x29d3fc(0x11c)]:[],_0xadf58=new Set(_0x587d9d[_0x29d3fc(0x109)](_0x362c97=>_0x362c97[_0x29d3fc(0x10a)]?.[_0x29d3fc(0x111)]())),_0x1f92a5=_0x392acf[_0x29d3fc(0x108)]?.['tableName']||_0x392acf[_0x29d3fc(0x13f)]||_0xcef791;_0x13968e[_0x29d3fc(0x103)+_0x1f92a5]={'code':_0xcef791,'tableName':_0x1f92a5,'fieldCount':_0xadf58['size'],'fields':Array['from'](_0xadf58)};if(_0x4c61b3){const _0xcd14a3=normalizeDatasetIndexes(_0x392acf);_0x1a832d['push']({'tableName':_0x1f92a5,..._0xcd14a3});}}_0x1359d2[_0x29d3fc(0x116)]>0x0&&(_0x13968e[_0x29d3fc(0x10e)]=_0x1359d2),_0x4c61b3&&(_0x13968e['joinAudit']=auditSqlJoinIndexes(_0x43a001,_0x1a832d));}return{'ok':_0x3024da[_0x29d3fc(0x120)],'data':_0x13968e,'message':_0x3024da[_0x29d3fc(0x125)]};}};function normalizeDatasetIndexes(_0x2309c8){const _0x50b2af=a188_0x14ede3,_0x52b4ea=Array[_0x50b2af(0x131)](_0x2309c8?.['dataset']?.[_0x50b2af(0x140)])?_0x2309c8['dataset'][_0x50b2af(0x140)]:Array[_0x50b2af(0x131)](_0x2309c8?.[_0x50b2af(0x140)])?_0x2309c8[_0x50b2af(0x140)]:[],_0x29d177=_0x52b4ea[_0x50b2af(0x138)](_0x2abd33=>{const _0x1b59ce=_0x50b2af,_0xf59929=Array[_0x1b59ce(0x131)](_0x2abd33?.[_0x1b59ce(0x12a)])?_0x2abd33['index_columns']:Array[_0x1b59ce(0x131)](_0x2abd33?.['columnNames'])?_0x2abd33[_0x1b59ce(0x12d)]:Array[_0x1b59ce(0x131)](_0x2abd33?.[_0x1b59ce(0x102)])?_0x2abd33[_0x1b59ce(0x102)]:[],_0x1ce4cf=_0xf59929['filter'](_0x592024=>typeof _0x592024===_0x1b59ce(0x12b))['map'](_0x2bd65a=>_0x2bd65a[_0x1b59ce(0x127)]())[_0x1b59ce(0x121)](Boolean);if(_0x1ce4cf['length']===0x0)return[];const _0x5d0bf9=[_0x2abd33?.[_0x1b59ce(0x123)],_0x2abd33?.['index_name'],_0x2abd33?.[_0x1b59ce(0x10a)]][_0x1b59ce(0x113)](_0x34b9c4=>typeof _0x34b9c4===_0x1b59ce(0x12b)&&_0x34b9c4[_0x1b59ce(0x127)]()),_0x47420b=[_0x2abd33?.[_0x1b59ce(0x13e)],_0x2abd33?.[_0x1b59ce(0x114)]]['find'](_0x3f9efb=>typeof _0x3f9efb===_0x1b59ce(0x12b)&&_0x3f9efb[_0x1b59ce(0x127)]());return[{..._0x5d0bf9?{'name':_0x5d0bf9['trim']()}:{},..._0x47420b?{'type':_0x47420b[_0x1b59ce(0x127)]()}:{},'columns':_0x1ce4cf}];}),_0x5db000=[..._0x29d177],_0x39e547=typeof _0x2309c8?.[_0x50b2af(0x108)]?.[_0x50b2af(0x105)]===_0x50b2af(0x12b)?_0x2309c8[_0x50b2af(0x108)]['pkField'][_0x50b2af(0x107)](',')[_0x50b2af(0x109)](_0x1d6258=>_0x1d6258['trim']())[_0x50b2af(0x121)](Boolean):[];return _0x39e547[_0x50b2af(0x116)]>0x0&&_0x5db000[_0x50b2af(0x110)]({'type':_0x50b2af(0x10d),'columns':_0x39e547}),{'indexes':_0x5db000,'metadataAvailable':_0x29d177[_0x50b2af(0x116)]>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a189_0xe3b8(_0x2d2921,_0x2eeff1){_0x2d2921=_0x2d2921-0x144;const _0x36cdf9=a189_0x36cd();let _0xe3b8cc=_0x36cdf9[_0x2d2921];return _0xe3b8cc;}(function(_0x391a3c,_0x4990bb){const _0x3d22f4=a189_0xe3b8,_0x15f131=_0x391a3c();while(!![]){try{const _0x1cdf6e=parseInt(_0x3d22f4(0x14b))/0x1*(parseInt(_0x3d22f4(0x149))/0x2)+-parseInt(_0x3d22f4(0x144))/0x3+-parseInt(_0x3d22f4(0x14e))/0x4*(parseInt(_0x3d22f4(0x14c))/0x5)+-parseInt(_0x3d22f4(0x14d))/0x6*(parseInt(_0x3d22f4(0x145))/0x7)+-parseInt(_0x3d22f4(0x14a))/0x8+-parseInt(_0x3d22f4(0x147))/0x9+parseInt(_0x3d22f4(0x146))/0xa*(parseInt(_0x3d22f4(0x148))/0xb);if(_0x1cdf6e===_0x4990bb)break;else _0x15f131['push'](_0x15f131['shift']());}catch(_0x4766d9){_0x15f131['push'](_0x15f131['shift']());}}}(a189_0x36cd,0x4f500));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a189_0x36cd(){const _0x3e95b7=['436068WeXglS','11QpHveL','768VpkBVq','4884776HiRuon','1453MhGjpQ','14215JfLCLO','18JaJLyN','808VyTqwP','1176588hcuYrU','1111299zvuwAc','18687140dIsbNO'];a189_0x36cd=function(){return _0x3e95b7;};return a189_0x36cd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a190_0x53dffc=a190_0x35bc;(function(_0xe9bc93,_0xa038f8){const _0x42e137=a190_0x35bc,_0xa2943d=_0xe9bc93();while(!![]){try{const _0x2e8bb1=parseInt(_0x42e137(0x193))/0x1+parseInt(_0x42e137(0x190))/0x2+parseInt(_0x42e137(0x194))/0x3+parseInt(_0x42e137(0x1a0))/0x4*(parseInt(_0x42e137(0x19d))/0x5)+-parseInt(_0x42e137(0x199))/0x6*(parseInt(_0x42e137(0x192))/0x7)+parseInt(_0x42e137(0x1a1))/0x8*(-parseInt(_0x42e137(0x18e))/0x9)+-parseInt(_0x42e137(0x19e))/0xa;if(_0x2e8bb1===_0xa038f8)break;else _0xa2943d['push'](_0xa2943d['shift']());}catch(_0x44dbc8){_0xa2943d['push'](_0xa2943d['shift']());}}}(a190_0xa8b0,0x62e04));function a190_0xa8b0(){const _0x17ccf7=['read','str','isTerminal','task-id','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','266499DiMmLH','cookie','442370oCGnCI','apiError','2993207oGEGNy','670205bwiSyT','2134359hQQOnA','trim','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','status',',\x20received\x20','6MypXbj','flagMissing','taskId','appCode','4965PgiLZS','6136120xlriEI','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','204sVHYAI','56jWtoJK'];a190_0xa8b0=function(){return _0x17ccf7;};return a190_0xa8b0();}function a190_0x35bc(_0x1ac37e,_0x4187bd){_0x1ac37e=_0x1ac37e-0x18a;const _0xa8b0fe=a190_0xa8b0();let _0x35bcb7=_0xa8b0fe[_0x1ac37e];return _0x35bcb7;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':'task','command':a190_0x53dffc(0x197),'description':a190_0x53dffc(0x196),'risk':a190_0x53dffc(0x1a2),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':a190_0x53dffc(0x18c),'type':'string','required':!![],'description':a190_0x53dffc(0x19f)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1d8419){const _0x137faa=a190_0x53dffc;if(!_0x1d8419[_0x137faa(0x18a)](_0x137faa(0x18c))['trim']())throw CliErrors[_0x137faa(0x19a)](_0x137faa(0x18c));},async 'execute'(_0x12f1ab){const _0x43047a=a190_0x53dffc,_0x4aa98d=_0x12f1ab[_0x43047a(0x18a)](_0x43047a(0x18c))[_0x43047a(0x195)](),_0x337c50=normalizeAsyncTask(await getAsyncTaskStatus(_0x4aa98d,_0x12f1ab['appCode'],_0x12f1ab[_0x43047a(0x18f)]));if(_0x337c50[_0x43047a(0x19b)]!==_0x4aa98d)throw CliErrors[_0x43047a(0x191)](_0x43047a(0x18d)+_0x4aa98d+_0x43047a(0x198)+_0x337c50['taskId']+'.');const _0x1185c2=buildAsyncTaskStatusCommand(_0x337c50[_0x43047a(0x19b)],_0x12f1ab[_0x43047a(0x19c)]);return{'ok':!![],'message':asyncTaskMessage(_0x337c50),'data':{'appCode':_0x12f1ab[_0x43047a(0x19c)],..._0x337c50,'query':_0x337c50[_0x43047a(0x18b)]?null:{'command':_0x1185c2}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a191_0x202a0e=a191_0x3a58;function a191_0x1e78(){const _0x3dc8bc=['12bUVYea','1577562kXwEYe','40772720MZjmSE','1039287lMHOim','workspace\x20add','4430232xVrPvr','name','write','6420540gbxIeL','579186sOjawB','1456530lyzWCk','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','9XeUprq'];a191_0x1e78=function(){return _0x3dc8bc;};return a191_0x1e78();}function a191_0x3a58(_0x52d96b,_0x3547d7){_0x52d96b=_0x52d96b-0x158;const _0x1e78a6=a191_0x1e78();let _0x3a584a=_0x1e78a6[_0x52d96b];return _0x3a584a;}(function(_0x5137f8,_0x510467){const _0x3456b4=a191_0x3a58,_0x15e6af=_0x5137f8();while(!![]){try{const _0x4df1b8=-parseInt(_0x3456b4(0x15d))/0x1+parseInt(_0x3456b4(0x158))/0x2+-parseInt(_0x3456b4(0x15f))/0x3*(parseInt(_0x3456b4(0x15c))/0x4)+-parseInt(_0x3456b4(0x159))/0x5+-parseInt(_0x3456b4(0x161))/0x6+-parseInt(_0x3456b4(0x164))/0x7+parseInt(_0x3456b4(0x15e))/0x8*(parseInt(_0x3456b4(0x15b))/0x9);if(_0x4df1b8===_0x510467)break;else _0x15e6af['push'](_0x15e6af['shift']());}catch(_0x715bf){_0x15e6af['push'](_0x15e6af['shift']());}}}(a191_0x1e78,0xc8ca4));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':'add','description':a191_0x202a0e(0x15a),'risk':a191_0x202a0e(0x163),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a191_0x202a0e(0x162),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x735d7c=>validateAppName(_0x735d7c,'workspace\x20add'),'execute':_0x26ba25=>runAppAdd(_0x26ba25,a191_0x202a0e(0x160))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a192_0x4a19db=a192_0x24f2;(function(_0x984031,_0x5734db){const _0x25c2e6=a192_0x24f2,_0x30c445=_0x984031();while(!![]){try{const _0x41e7e8=parseInt(_0x25c2e6(0xbc))/0x1*(parseInt(_0x25c2e6(0x98))/0x2)+-parseInt(_0x25c2e6(0x9d))/0x3+parseInt(_0x25c2e6(0xa3))/0x4*(-parseInt(_0x25c2e6(0x96))/0x5)+parseInt(_0x25c2e6(0xb4))/0x6*(parseInt(_0x25c2e6(0xa2))/0x7)+parseInt(_0x25c2e6(0x93))/0x8+parseInt(_0x25c2e6(0xaf))/0x9*(-parseInt(_0x25c2e6(0xbd))/0xa)+parseInt(_0x25c2e6(0xba))/0xb;if(_0x41e7e8===_0x5734db)break;else _0x30c445['push'](_0x30c445['shift']());}catch(_0x2ca798){_0x30c445['push'](_0x30c445['shift']());}}}(a192_0xc2bd,0xe4b7b));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a192_0x4a19db(0xb1),a192_0x4a19db(0xa5),a192_0x4a19db(0x95),a192_0x4a19db(0x8e),a192_0x4a19db(0xae),a192_0x4a19db(0x9f),a192_0x4a19db(0xb5)],workspaceFlags=[{'name':a192_0x4a19db(0xa6),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0xa7)},{'name':a192_0x4a19db(0xb1),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x97)},{'name':a192_0x4a19db(0xa5),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x94),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'defaultFormat','type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0xc6),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a192_0x4a19db(0xae),'type':a192_0x4a19db(0xa0),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':'string','description':a192_0x4a19db(0xb7),'enum':[...RISK_LEVEL_VALUES]},{'name':a192_0x4a19db(0xb5),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x90)}];function isRecord(_0x3847c0){const _0x69bfbe=a192_0x4a19db;return!!_0x3847c0&&typeof _0x3847c0==='object'&&!Array[_0x69bfbe(0x9e)](_0x3847c0);}function a192_0x24f2(_0x5e451c,_0x2e1abf){_0x5e451c=_0x5e451c-0x8e;const _0xc2bdb=a192_0xc2bd();let _0x24f243=_0xc2bdb[_0x5e451c];return _0x24f243;}function assertValidAppcode(_0x2e2247){const _0x54333b=a192_0x4a19db,{valid:_0x1133a9,message:_0x5927d3}=validateAppcode(_0x2e2247);if(!_0x1133a9)throw CliErrors[_0x54333b(0xac)]('Invalid\x20appcode:\x20'+_0x2e2247,_0x5927d3);}function sanitizeProfile(_0x44de46){if(!isRecord(_0x44de46))return{};const _0x51e0d4={};for(const _0x87120a of SAFE_PROFILE_KEYS){if(_0x44de46[_0x87120a]!==undefined)_0x51e0d4[_0x87120a]=_0x44de46[_0x87120a];}return _0x51e0d4;}function cloneProfile(_0x49db0a){return isRecord(_0x49db0a)?{..._0x49db0a}:{};}function collectWorkspaceProfileOverrides(_0x2b2fe6){const _0x3e8390=a192_0x4a19db,_0x2ecc2a={},_0x32a75a=_0x2b2fe6[_0x3e8390(0xbe)]('env'),_0x230640=_0x2b2fe6['str'](_0x3e8390(0x95)),_0x10227e=_0x2b2fe6[_0x3e8390(0xbe)](_0x3e8390(0xbf)),_0x38b5b8=_0x2b2fe6[_0x3e8390(0x91)]('pageSize'),_0xc93a1b=_0x2b2fe6['str'](_0x3e8390(0x9f)),_0x3435e9=_0x2b2fe6[_0x3e8390(0xbe)]('locale');if(_0x32a75a)_0x2ecc2a[_0x3e8390(0xa5)]=_0x32a75a;if(_0x230640)_0x2ecc2a['apiDir']=_0x230640;if(_0x10227e)_0x2ecc2a['format']=_0x10227e;if(_0x38b5b8!==undefined&&_0x38b5b8!=='')_0x2ecc2a[_0x3e8390(0xae)]=Number(_0x38b5b8);if(_0xc93a1b)_0x2ecc2a[_0x3e8390(0x9f)]=_0xc93a1b;if(_0x3435e9)_0x2ecc2a[_0x3e8390(0xb5)]=_0x3435e9;return _0x2ecc2a;}async function validateWorkspaceArgs(_0x4bb04b){const _0x123883=a192_0x4a19db,_0x169d84=_0x4bb04b[_0x123883(0xbe)]('app')[_0x123883(0xc5)](),_0x12fa11=_0x4bb04b[_0x123883(0xbe)](_0x123883(0xb1))['trim']();if(!_0x169d84&&!_0x12fa11)throw CliErrors[_0x123883(0xac)](_0x123883(0x9b),'Use\x20`'+CLI_BIN_NAME+_0x123883(0x9c)+CLI_BIN_NAME+_0x123883(0xa4));if(_0x12fa11)assertValidAppcode(_0x12fa11);}function a192_0xc2bd(){const _0x25fa8f=['keys','\x20--appcode\x20<code>`.','use','trim','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','format','write','Locale\x20for\x20this\x20workspace\x20app\x20profile','flag','\x20workspace\x20','11953728IbPwAt','Target\x20environment','apiDir','7008740IjjzBA','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','4076PITmJo','string',').\x20Config:\x20','Missing\x20workspace\x20app\x20selector.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','3252219SJEwrc','isArray','riskLevel','number','updated','33572yABQih','4JGVsVg','\x20workspace\x20use\x20--app\x20<name>`.','env','app','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','workspace','\x22\x20not\x20found.','apps','length','validation','Use\x20`','pageSize','432yPOJfq','workspace.','appcode','globalConfig','\x20(appcode:\x20','726wzsJhf','locale','App\x20\x22','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Switch\x20the\x20current\x20workspace\x20app\x20binding','init','5225594kZcpYa','defaultApp','881lkDGtK','192170cVWzKi','str','defaultFormat','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Workspace\x20'];a192_0xc2bd=function(){return _0x25fa8f;};return a192_0xc2bd();}function resolveKnownApps(){const _0x5e3165=a192_0x4a19db,{config:_0x36196c,layers:_0x514dd3}=readRawConfigWithLayers(),_0x450df7=isRecord(_0x36196c[_0x5e3165(0xaa)])?_0x36196c[_0x5e3165(0xaa)]:{},_0x1fc2f4=isRecord(_0x514dd3[_0x5e3165(0xb2)][_0x5e3165(0xaa)])?_0x514dd3[_0x5e3165(0xb2)][_0x5e3165(0xaa)]:{};return{..._0x1fc2f4,..._0x450df7};}async function configureWorkspace(_0x11ee0b,_0x17cc5b){const _0x311587=a192_0x4a19db,_0x783a99=_0x11ee0b[_0x311587(0xbe)]('app')[_0x311587(0xc5)](),_0x5eafa7=_0x11ee0b[_0x311587(0xbe)](_0x311587(0xb1))['trim'](),_0x14aec4=_0x783a99||_0x5eafa7;if(!_0x14aec4)throw CliErrors[_0x311587(0xac)]('Missing\x20workspace\x20app\x20selector.',_0x311587(0xad)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x5eafa7)assertValidAppcode(_0x5eafa7);const _0x3c6fcd=resolveWriteConfigPath('project'),_0x277b2c=readConfigFile(_0x3c6fcd),_0x327ada=resolveKnownApps(),_0x585e73=isRecord(_0x277b2c[_0x311587(0xaa)])?{..._0x277b2c[_0x311587(0xaa)]}:{},_0x84c149=cloneProfile(_0x585e73[_0x14aec4]),_0x7dda47=sanitizeProfile(_0x327ada[_0x14aec4]),_0x3d69b5=_0x5eafa7?{}:_0x7dda47,_0x43c050=_0x5eafa7||_0x3d69b5[_0x311587(0xb1)];if(!_0x43c050){const _0xc364ca=Object[_0x311587(0xc2)](_0x327ada),_0x3db5ab=_0xc364ca[_0x311587(0xab)]===0x0?_0x311587(0xad)+CLI_BIN_NAME+_0x311587(0x92)+_0x17cc5b+'\x20--app\x20'+_0x14aec4+_0x311587(0xc3):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0xc364ca['join'](',\x20');throw CliErrors[_0x311587(0xac)](_0x311587(0xb6)+_0x14aec4+_0x311587(0xa9),_0x3db5ab);}assertValidAppcode(String(_0x43c050));const _0x5597de={..._0x3d69b5,..._0x84c149,'appcode':String(_0x43c050),...collectWorkspaceProfileOverrides(_0x11ee0b)};return _0x585e73[_0x14aec4]=_0x5597de,_0x277b2c[_0x311587(0xaa)]=_0x585e73,_0x277b2c[_0x311587(0xbb)]=_0x14aec4,delete _0x277b2c[_0x311587(0xb1)],delete _0x277b2c[_0x311587(0xa6)],_0x5597de[_0x311587(0xa5)]&&(_0x277b2c[_0x311587(0xa5)]=_0x5597de['env']),writeConfigFile(_0x3c6fcd,_0x277b2c),{'ok':!![],'message':_0x311587(0xc1)+(_0x17cc5b==='init'?'initialized':_0x311587(0xa1))+':\x20'+_0x14aec4+_0x311587(0xb3)+_0x5597de[_0x311587(0xb1)]+_0x311587(0x9a)+_0x3c6fcd+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x311587(0xb0)+_0x17cc5b,'configPath':_0x3c6fcd,'app':_0x14aec4,'appcode':_0x5597de[_0x311587(0xb1)],'env':_0x5597de[_0x311587(0xa5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a192_0x4a19db(0xa8),'command':a192_0x4a19db(0xb9),'description':a192_0x4a19db(0xc0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xb2c100=>configureWorkspace(_0xb2c100,'init')},workspaceUseDefinition={'service':a192_0x4a19db(0xa8),'command':'use','description':a192_0x4a19db(0xb8),'risk':a192_0x4a19db(0x8f),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5bb683=>configureWorkspace(_0x5bb683,a192_0x4a19db(0xc4))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a193_0x35d15d=a193_0x1fe8;function a193_0x209b(){const _0x44860b=['305418tQGOhk','208019dFIRQl','280FqwKUO','name','301108OzBCFa','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','workspace\x20remove','3EZiIhV','1363150IllQjv','2876292QKkdVq','workspace','11742039ifeSPr','remove','145OvogLH','43755950ZVoghF'];a193_0x209b=function(){return _0x44860b;};return a193_0x209b();}(function(_0x1b7ffa,_0x1bd61b){const _0x67ca70=a193_0x1fe8,_0x21a3ed=_0x1b7ffa();while(!![]){try{const _0x3b26f1=-parseInt(_0x67ca70(0x14a))/0x1+-parseInt(_0x67ca70(0x14b))/0x2+-parseInt(_0x67ca70(0x149))/0x3*(-parseInt(_0x67ca70(0x146))/0x4)+-parseInt(_0x67ca70(0x14f))/0x5*(-parseInt(_0x67ca70(0x151))/0x6)+-parseInt(_0x67ca70(0x143))/0x7*(parseInt(_0x67ca70(0x144))/0x8)+-parseInt(_0x67ca70(0x14d))/0x9+parseInt(_0x67ca70(0x150))/0xa;if(_0x3b26f1===_0x1bd61b)break;else _0x21a3ed['push'](_0x21a3ed['shift']());}catch(_0x314a38){_0x21a3ed['push'](_0x21a3ed['shift']());}}}(a193_0x209b,0xbeac5));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a193_0x1fe8(_0x41d6d1,_0x5c26fd){_0x41d6d1=_0x41d6d1-0x143;const _0x209b14=a193_0x209b();let _0x1fe8e5=_0x209b14[_0x41d6d1];return _0x1fe8e5;}export const workspaceRemoveDefinition={'service':a193_0x35d15d(0x14c),'command':a193_0x35d15d(0x14e),'description':a193_0x35d15d(0x147),'risk':'high-risk-write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a193_0x35d15d(0x145),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x393af3=>validateAppName(_0x393af3,'workspace\x20remove'),'execute':_0x2ca895=>runAppRemove(_0x2ca895,a193_0x35d15d(0x148))};
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a194_0x5db17b=a194_0x37ab;(function(_0x2b4c2b,_0x390623){const _0x73ecac=a194_0x37ab,_0x40119d=_0x2b4c2b();while(!![]){try{const _0x328014=parseInt(_0x73ecac(0x1d6))/0x1*(parseInt(_0x73ecac(0x1e5))/0x2)+-parseInt(_0x73ecac(0x1f0))/0x3*(-parseInt(_0x73ecac(0x1d5))/0x4)+parseInt(_0x73ecac(0x1ef))/0x5*(parseInt(_0x73ecac(0x1c9))/0x6)+parseInt(_0x73ecac(0x1ea))/0x7+parseInt(_0x73ecac(0x1d8))/0x8*(parseInt(_0x73ecac(0x1e3))/0x9)+parseInt(_0x73ecac(0x1de))/0xa+parseInt(_0x73ecac(0x1e1))/0xb*(-parseInt(_0x73ecac(0x1ed))/0xc);if(_0x328014===_0x390623)break;else _0x40119d['push'](_0x40119d['shift']());}catch(_0x493c65){_0x40119d['push'](_0x40119d['shift']());}}}(a194_0x522b,0x35f2f));function a194_0x522b(){const _0x409b0d=['entries','9rgPsVV','filter','346YdRfgk','join','defaultFormat','inherit','apps','885374aMxElH','Auth\x20cookie','accessKey','2064pydcgx','locale','15cWZlpE','396PlRQdP','Default\x20page\x20size','env','cookie','660798GdRaaA','number','trim','format','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','keys','apiDir','Access\x20key','riskLevel','app','pageSize','defaultApp','1464uFVrpd','1322wOXfxd','zh-CN','481672nHaDBF','has','toLowerCase','appcode','length','API\x20directory\x20path','2361270ptEFrt','en-US','string','51755hFAJVm'];a194_0x522b=function(){return _0x409b0d;};return a194_0x522b();}function a194_0x37ab(_0x4cd520,_0x244a53){_0x4cd520=_0x4cd520-0x1c9;const _0x522bed=a194_0x522b();let _0x37ab8e=_0x522bed[_0x4cd520];return _0x37ab8e;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a194_0x5db17b(0x1ec),a194_0x5db17b(0x1ee),a194_0x5db17b(0x1cc),a194_0x5db17b(0x1d1)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a194_0x5db17b(0x1f2),a194_0x5db17b(0x1ee),'format',a194_0x5db17b(0x1f3),'accessKey','apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x37e051){const _0x396197=a194_0x5db17b;return[..._0x37e051][_0x396197(0x1e6)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xaade22){const _0x5bf3cc=a194_0x5db17b;return TOP_LEVEL_CONFIG_KEYS[_0x5bf3cc(0x1d9)](_0xaade22);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a194_0x5db17b(0x1f2),'apiDir':a194_0x5db17b(0x1cf),'cookie':a194_0x5db17b(0x1f3),'accessKey':a194_0x5db17b(0x1ec),'defaultFormat':a194_0x5db17b(0x1cc),'pageSize':a194_0x5db17b(0x1d3),'riskLevel':a194_0x5db17b(0x1d1),'locale':a194_0x5db17b(0x1ee)};export function getAppProfileFlagDefs(){const _0x134194=a194_0x5db17b;return[{'name':_0x134194(0x1f2),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x134194(0x1e0),'description':_0x134194(0x1dd)},{'name':_0x134194(0x1f3),'type':'string','description':_0x134194(0x1eb),'hidden':!![]},{'name':_0x134194(0x1ec),'type':_0x134194(0x1e0),'description':_0x134194(0x1d0),'hidden':!![]},{'name':_0x134194(0x1e7),'type':_0x134194(0x1e0),'description':_0x134194(0x1cd),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x134194(0x1d3),'type':_0x134194(0x1ca),'description':_0x134194(0x1f1)},{'name':_0x134194(0x1d1),'type':_0x134194(0x1e0),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x134194(0x1ee),'type':_0x134194(0x1e0),'description':'Locale'}];}export function collectAppProfileOverrides(_0x194664){const _0x7c9b84=a194_0x5db17b,_0x4a804b={};for(const [_0x1aad82,_0x2052b4]of Object[_0x7c9b84(0x1e2)](APP_PROFILE_FLAG_KEY_MAP)){const _0x520f27=_0x194664(_0x1aad82);if(!_0x520f27)continue;_0x4a804b[_0x2052b4]=_0x2052b4==='pageSize'?Number(_0x520f27):_0x520f27;}return _0x4a804b;}export function buildAppProfileListFields(_0x473178){const _0x52d05d=a194_0x5db17b;return{'env':_0x473178['env']??null,'apiDir':_0x473178[_0x52d05d(0x1cf)]??null,'hasCookie':!!_0x473178[_0x52d05d(0x1f3)],'hasAccessKey':!!_0x473178['accessKey'],'format':_0x473178[_0x52d05d(0x1cc)]??null,'pageSize':_0x473178['pageSize']??null,'riskLevel':_0x473178[_0x52d05d(0x1d1)]??null,'locale':_0x473178[_0x52d05d(0x1ee)]??null};}export function buildAppDoctorFields(_0x55dd45,_0x861df5){const _0x4d2016=a194_0x5db17b;return{'env':{'value':_0x55dd45[_0x4d2016(0x1f2)]||_0x861df5[_0x4d2016(0x1f2)],'source':_0x55dd45[_0x4d2016(0x1f2)]?'app':_0x4d2016(0x1e8)},'apiDir':{'value':_0x55dd45[_0x4d2016(0x1cf)]||_0x861df5[_0x4d2016(0x1cf)],'source':_0x55dd45[_0x4d2016(0x1cf)]?'app':_0x4d2016(0x1e8)},'cookie':{'value':_0x55dd45['cookie']||_0x861df5[_0x4d2016(0x1f3)],'source':_0x55dd45[_0x4d2016(0x1f3)]?_0x4d2016(0x1d2):_0x4d2016(0x1e8)},'accessKey':{'value':_0x55dd45[_0x4d2016(0x1ec)]||_0x861df5[_0x4d2016(0x1ec)],'source':_0x55dd45['accessKey']?_0x4d2016(0x1d2):_0x4d2016(0x1e8)}};}export function buildCanonicalAppConfig(_0x43bbd2,_0x449131){const _0x450e61=a194_0x5db17b,_0x36316c=_0x43bbd2['map'](_0x5d3b19=>String(_0x5d3b19||'')[_0x450e61(0x1cb)]())[_0x450e61(0x1e4)](Boolean);if(_0x36316c['length']===0x0)return{};const _0x21e3a6={};for(const _0x3ba578 of _0x36316c){_0x21e3a6[_0x3ba578]=_0x449131?{'appcode':_0x3ba578,'env':_0x449131}:{'appcode':_0x3ba578};}return{'apps':_0x21e3a6,'defaultApp':_0x36316c[0x0]};}export function buildCanonicalProjectConfig(_0x39f85f,_0x58b975){const _0x55d4e1=a194_0x5db17b,{appCodes:appCodes=[],env:_0xf7b8e7,metadata:_0xa9b2a2}=_0x58b975,_0x340f20={..._0x39f85f,..._0xa9b2a2||{}};delete _0x340f20[_0x55d4e1(0x1db)],delete _0x340f20[_0x55d4e1(0x1d2)];if(_0xf7b8e7)_0x340f20[_0x55d4e1(0x1f2)]=_0xf7b8e7;else!_0x340f20['env']&&(_0x340f20[_0x55d4e1(0x1f2)]=DEFAULT_CONFIG_VALUES[_0x55d4e1(0x1f2)]);const _0x1f9f93=buildCanonicalAppConfig(appCodes,_0x340f20[_0x55d4e1(0x1f2)]);return Object[_0x55d4e1(0x1ce)](_0x1f9f93)[_0x55d4e1(0x1dc)]>0x0&&(_0x340f20[_0x55d4e1(0x1e9)]=_0x1f9f93['apps'],_0x340f20[_0x55d4e1(0x1d4)]=_0x1f9f93[_0x55d4e1(0x1d4)]),_0x340f20;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':a194_0x5db17b(0x1d7),'en':'en-US','en-us':a194_0x5db17b(0x1df),'en_us':a194_0x5db17b(0x1df)};export function normalizeLocale(_0x13bf9f){const _0x4dedac=a194_0x5db17b;if(!_0x13bf9f)return null;return LOCALE_MAP[_0x13bf9f[_0x4dedac(0x1da)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a195_0x1af3(_0x5b8288,_0x1c9d38){_0x5b8288=_0x5b8288-0x1cd;const _0x2cde33=a195_0x2cde();let _0x1af3d0=_0x2cde33[_0x5b8288];return _0x1af3d0;}const a195_0x57ffc5=a195_0x1af3;(function(_0x4e177c,_0x3bf3a4){const _0x194e3e=a195_0x1af3,_0x28a4ca=_0x4e177c();while(!![]){try{const _0x2d3315=-parseInt(_0x194e3e(0x1d2))/0x1+-parseInt(_0x194e3e(0x1d6))/0x2+parseInt(_0x194e3e(0x1cf))/0x3*(-parseInt(_0x194e3e(0x1d3))/0x4)+parseInt(_0x194e3e(0x1d0))/0x5*(parseInt(_0x194e3e(0x1d1))/0x6)+parseInt(_0x194e3e(0x1d5))/0x7+parseInt(_0x194e3e(0x1d4))/0x8+parseInt(_0x194e3e(0x1cd))/0x9;if(_0x2d3315===_0x3bf3a4)break;else _0x28a4ca['push'](_0x28a4ca['shift']());}catch(_0x4b43b4){_0x28a4ca['push'](_0x28a4ca['shift']());}}}(a195_0x2cde,0x57c61));function a195_0x2cde(){const _0x56e421=['1184192xAHMvZ','4944544OGNuCl','834127UcOnfv','57554NfSZKY','488781LVzCZy','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','3MmBCuC','25yOionI','125286ZBIBgm','211597iAXEgI'];a195_0x2cde=function(){return _0x56e421;};return a195_0x2cde();}export const CLI_VERSION_POLICY_URL=a195_0x57ffc5(0x1ce);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a189_0x3a44f2=a189_0xf1d5;(function(_0x132502,_0x5449e0){const _0x5880a8=a189_0xf1d5,_0x2d6974=_0x132502();while(!![]){try{const _0x3bc448=parseInt(_0x5880a8(0x17f))/0x1+parseInt(_0x5880a8(0x1a1))/0x2*(-parseInt(_0x5880a8(0x14b))/0x3)+parseInt(_0x5880a8(0x19e))/0x4+parseInt(_0x5880a8(0x1a5))/0x5*(-parseInt(_0x5880a8(0x1a9))/0x6)+-parseInt(_0x5880a8(0x15e))/0x7*(parseInt(_0x5880a8(0x152))/0x8)+parseInt(_0x5880a8(0x164))/0x9*(-parseInt(_0x5880a8(0x147))/0xa)+parseInt(_0x5880a8(0x17c))/0xb*(parseInt(_0x5880a8(0x19f))/0xc);if(_0x3bc448===_0x5449e0)break;else _0x2d6974['push'](_0x2d6974['shift']());}catch(_0x4184c3){_0x2d6974['push'](_0x2d6974['shift']());}}}(a189_0xd1ae,0x84947));export const CLI_BIN_NAME=a189_0x3a44f2(0x168);export const CLI_DISPLAY_NAME=a189_0x3a44f2(0x148);export const NPM_PACKAGE_NAME=a189_0x3a44f2(0x153);export const GLOBAL_FLAGS=[{'name':a189_0x3a44f2(0x1a3),'meowKey':a189_0x3a44f2(0x1a3),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x19d),'hint':a189_0x3a44f2(0x159)},{'name':a189_0x3a44f2(0x1a0),'meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a189_0x3a44f2(0x157)},{'name':a189_0x3a44f2(0x14f),'meowKey':a189_0x3a44f2(0x14f),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x13c),'hint':a189_0x3a44f2(0x1b4)},{'name':'format','meowKey':a189_0x3a44f2(0x161),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x17a),'hint':a189_0x3a44f2(0x1ae)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a189_0x3a44f2(0x15c)},{'name':a189_0x3a44f2(0x13d),'meowKey':a189_0x3a44f2(0x163),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x162)},{'name':a189_0x3a44f2(0x15a),'meowKey':'yes','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x15b)},{'name':a189_0x3a44f2(0x138),'meowKey':'nonInteractive','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x19a)},{'name':a189_0x3a44f2(0x171),'meowKey':'global','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x186)},{'name':a189_0x3a44f2(0x1a8),'meowKey':a189_0x3a44f2(0x1a8),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x134)},{'name':'ci','meowKey':'ci','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x16b),'hidden':!![]},{'name':a189_0x3a44f2(0x17e),'meowKey':a189_0x3a44f2(0x17e),'type':a189_0x3a44f2(0x1ac),'description':'Show\x20help'},{'name':a189_0x3a44f2(0x143),'meowKey':a189_0x3a44f2(0x143),'type':'string','description':a189_0x3a44f2(0x182),'hidden':!![]},{'name':'title','meowKey':a189_0x3a44f2(0x14e),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x17b),'hidden':!![]},{'name':a189_0x3a44f2(0x1aa),'meowKey':a189_0x3a44f2(0x1aa),'type':a189_0x3a44f2(0x1ac),'description':'Clear','hidden':!![]},{'name':a189_0x3a44f2(0x178),'meowKey':'watch','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x151),'hidden':!![]},{'name':'output','meowKey':'output','type':'string','description':a189_0x3a44f2(0x19c),'hidden':!![]},{'name':'params','meowKey':a189_0x3a44f2(0x197),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x198),'hidden':!![]},{'name':a189_0x3a44f2(0x15f),'meowKey':a189_0x3a44f2(0x15f),'type':a189_0x3a44f2(0x172),'description':'Dataset\x20code','hidden':!![]},{'name':a189_0x3a44f2(0x18c),'meowKey':a189_0x3a44f2(0x18c),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x184),'hidden':!![]},{'name':'enable-bff-save','meowKey':a189_0x3a44f2(0x167),'type':a189_0x3a44f2(0x1ac),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x185),'hidden':!![]},{'name':a189_0x3a44f2(0x19b),'meowKey':a189_0x3a44f2(0x19b),'type':a189_0x3a44f2(0x172),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':'file','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x137),'hidden':!![]},{'name':a189_0x3a44f2(0x1a7),'meowKey':'sqlcode','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18e),'hidden':!![]},{'name':'sql-name','meowKey':a189_0x3a44f2(0x1b2),'type':'string','description':a189_0x3a44f2(0x177),'hidden':!![]},{'name':a189_0x3a44f2(0x145),'meowKey':a189_0x3a44f2(0x145),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x177),'hidden':!![]},{'name':a189_0x3a44f2(0x156),'meowKey':'dbId','type':'string','description':a189_0x3a44f2(0x194),'hidden':!![]},{'name':a189_0x3a44f2(0x16c),'meowKey':a189_0x3a44f2(0x16c),'type':a189_0x3a44f2(0x172),'description':'DB\x20ID','hidden':!![]},{'name':a189_0x3a44f2(0x136),'meowKey':a189_0x3a44f2(0x136),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x165),'hidden':!![]},{'name':a189_0x3a44f2(0x195),'meowKey':a189_0x3a44f2(0x18b),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x142),'hidden':!![]},{'name':a189_0x3a44f2(0x1b1),'meowKey':a189_0x3a44f2(0x1b1),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x188),'hidden':!![]},{'name':a189_0x3a44f2(0x154),'meowKey':a189_0x3a44f2(0x154),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x140),'hidden':!![]},{'name':a189_0x3a44f2(0x16d),'meowKey':a189_0x3a44f2(0x16d),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x196),'hidden':!![]},{'name':a189_0x3a44f2(0x150),'meowKey':'code','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x181),'hidden':!![]},{'name':'sql','meowKey':a189_0x3a44f2(0x13e),'type':a189_0x3a44f2(0x172),'description':'SQL\x20string','hidden':!![]},{'name':a189_0x3a44f2(0x1b0),'meowKey':a189_0x3a44f2(0x1b0),'type':'string','description':a189_0x3a44f2(0x183),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x1ab),'hidden':!![]},{'name':a189_0x3a44f2(0x1a2),'meowKey':a189_0x3a44f2(0x1a2),'type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':'boolean','description':a189_0x3a44f2(0x13a),'hidden':!![]},{'name':a189_0x3a44f2(0x139),'meowKey':'key','type':'string','description':a189_0x3a44f2(0x173),'hidden':!![]},{'name':a189_0x3a44f2(0x193),'meowKey':'value','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18f),'hidden':!![]},{'name':a189_0x3a44f2(0x14d),'meowKey':a189_0x3a44f2(0x14d),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x16f),'hidden':!![]},{'name':a189_0x3a44f2(0x166),'meowKey':'stdin','type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a189_0x3a44f2(0x17d),'meowKey':a189_0x3a44f2(0x170),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x16a),'hidden':!![]},{'name':a189_0x3a44f2(0x169),'meowKey':'reveal','type':'boolean','description':a189_0x3a44f2(0x14c),'hidden':!![]},{'name':a189_0x3a44f2(0x13f),'meowKey':a189_0x3a44f2(0x13f),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x1ad),'hidden':!![]},{'name':a189_0x3a44f2(0x160),'meowKey':a189_0x3a44f2(0x160),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x146),'hidden':!![]},{'name':a189_0x3a44f2(0x14a),'meowKey':a189_0x3a44f2(0x14a),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x199),'hidden':!![]},{'name':a189_0x3a44f2(0x15d),'meowKey':a189_0x3a44f2(0x15d),'type':'boolean','description':a189_0x3a44f2(0x192),'hidden':!![]},{'name':a189_0x3a44f2(0x1af),'meowKey':'expectedCount','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x1b3),'hidden':!![]},{'name':a189_0x3a44f2(0x144),'meowKey':a189_0x3a44f2(0x144),'type':'string','description':a189_0x3a44f2(0x141),'hidden':!![]},{'name':a189_0x3a44f2(0x180),'meowKey':a189_0x3a44f2(0x187),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x174),'hidden':!![]},{'name':a189_0x3a44f2(0x13b),'meowKey':'sort','type':a189_0x3a44f2(0x172),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':'expect-parent-id','meowKey':a189_0x3a44f2(0x1a6),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x133),'hidden':!![]},{'name':a189_0x3a44f2(0x155),'meowKey':a189_0x3a44f2(0x175),'type':a189_0x3a44f2(0x172),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a189_0x3a44f2(0x18a),'type':'string','description':a189_0x3a44f2(0x190),'hidden':!![]},{'name':a189_0x3a44f2(0x135),'meowKey':a189_0x3a44f2(0x191),'type':a189_0x3a44f2(0x172),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a189_0x3a44f2(0x158),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x176),'hidden':!![]},{'name':a189_0x3a44f2(0x1a4),'meowKey':a189_0x3a44f2(0x16e),'type':'string','description':a189_0x3a44f2(0x1ab),'hidden':!![]},{'name':'function-node','meowKey':a189_0x3a44f2(0x189),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18d),'hidden':!![]}];function a189_0xd1ae(){const _0x57a595=['<expr>','verbose','2198LGkprH','datasetcode','confirm','format','Preview\x20operation\x20without\x20executing','dryRun','27xhaCjG','Description','stdin','enableBffSave','rabetbase','reveal','Read\x20value\x20from\x20environment\x20variable','Alias\x20for\x20--non-interactive','dbid','keyword','operationType','Tags','fromEnv','global','string','Config\x20key','Parent\x20menu\x20id','expectPath','Asynchronous\x20task\x20ID','SQL\x20name','watch','meowKey','Output\x20format','Title','11wzpLCh','from-env','help','780287tCaHqg','parent-id','Code\x20filter','Name','Schemas','Apply\x20to\x20all','Record\x20ID','Use\x20global\x20config\x20scope','parentId','Page\x20number','functionNode','expectedChildrenCount','descriptionFile','all','Function\x20node','SQL\x20code','Config\x20value','Expected\x20current\x20child\x20count','menuIds','Verbose\x20output','value','DB\x20ID','description-file','Keyword\x20filter','params','JSON\x20params','Use\x20remote','Force\x20non-interactive\x20mode\x20(CI)','type','Output\x20path','Override\x20appcode','1277636RRdxuo','14864904AEDCNz','app','140KfjAmt','target','appcode','operation-type','85RDASMT','expectParentId','sqlcode','project','4074tAEIaq','clear','Operation\x20type','boolean','Force\x20overwrite','json\x20|\x20pretty\x20|\x20compress','expected-count','schemas','page','sqlName','Expected\x20affected\x20count','production\x20|\x20daily','Expected\x20current\x20parent\x20menu\x20id','Use\x20project\x20config\x20scope','menu-ids','description','File\x20path','non-interactive','key','Skip\x20import\x20generation','sort','Environment','dry-run','sql','force','Page\x20size','Menu\x20label','Description\x20file','name','label','sqlname','Confirm\x20destructive\x20action','1040240HvtTHU','Rabetbase\x20CLI','fromEntries','remote','25275EMVtWm','Reveal\x20sensitive\x20value','tags','title','env','code','Watch\x20mode','22472SkOdqt','@lovrabet/rabetbase-cli','pagesize','expect-path','db-id','<name>','taskId','<code>','yes','Skip\x20confirmation\x20for\x20high-risk\x20writes'];a189_0xd1ae=function(){return _0x57a595;};return a189_0xd1ae();}export const PIPELINE_FLAG_NAMES=new Set([a189_0x3a44f2(0x1a3),a189_0x3a44f2(0x1a0),a189_0x3a44f2(0x14f),a189_0x3a44f2(0x161),'jq',a189_0x3a44f2(0x13d),'yes',a189_0x3a44f2(0x138),'ci']);function a189_0xf1d5(_0x5254d6,_0x2ce861){_0x5254d6=_0x5254d6-0x133;const _0xd1ae7d=a189_0xd1ae();let _0xf1d5e6=_0xd1ae7d[_0x5254d6];return _0xf1d5e6;}export function buildMeowFlags(){const _0x213fdb=a189_0x3a44f2;return Object[_0x213fdb(0x149)](GLOBAL_FLAGS['map'](_0x376569=>[_0x376569[_0x213fdb(0x179)],{'type':_0x376569[_0x213fdb(0x19b)]}]));}
|
|
1
|
+
const a196_0xf951fb=a196_0x3af9;(function(_0x26bf8d,_0x52d35e){const _0x2aad5e=a196_0x3af9,_0x102dd3=_0x26bf8d();while(!![]){try{const _0x565c72=-parseInt(_0x2aad5e(0x125))/0x1+-parseInt(_0x2aad5e(0xfd))/0x2+parseInt(_0x2aad5e(0xe3))/0x3+-parseInt(_0x2aad5e(0xdb))/0x4*(parseInt(_0x2aad5e(0xf0))/0x5)+parseInt(_0x2aad5e(0xc8))/0x6+-parseInt(_0x2aad5e(0x101))/0x7+-parseInt(_0x2aad5e(0x10a))/0x8*(-parseInt(_0x2aad5e(0x114))/0x9);if(_0x565c72===_0x52d35e)break;else _0x102dd3['push'](_0x102dd3['shift']());}catch(_0x594628){_0x102dd3['push'](_0x102dd3['shift']());}}}(a196_0x5573,0x64faf));function a196_0x3af9(_0x372d9c,_0x2cb1e7){_0x372d9c=_0x372d9c-0xc8;const _0x557354=a196_0x5573();let _0x3af92a=_0x557354[_0x372d9c];return _0x3af92a;}export const CLI_BIN_NAME=a196_0xf951fb(0x115);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a196_0xf951fb(0xfb);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a196_0xf951fb(0x12d),'type':a196_0xf951fb(0xf9),'description':'Override\x20appcode','hint':a196_0xf951fb(0xd7)},{'name':a196_0xf951fb(0x118),'meowKey':'app','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xcd),'hint':a196_0xf951fb(0xf7)},{'name':a196_0xf951fb(0x117),'meowKey':'env','type':a196_0xf951fb(0xf9),'description':'Environment','hint':a196_0xf951fb(0x123)},{'name':'format','meowKey':a196_0xf951fb(0x105),'type':'string','description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a196_0xf951fb(0xcf),'hint':a196_0xf951fb(0x119)},{'name':a196_0xf951fb(0xd0),'meowKey':'dryRun','type':a196_0xf951fb(0x139),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a196_0xf951fb(0x128),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xd4)},{'name':a196_0xf951fb(0xcb),'meowKey':'nonInteractive','type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x10f)},{'name':a196_0xf951fb(0x129),'meowKey':a196_0xf951fb(0x129),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xdc)},{'name':a196_0xf951fb(0x100),'meowKey':a196_0xf951fb(0x100),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x13e)},{'name':'ci','meowKey':'ci','type':a196_0xf951fb(0x139),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a196_0xf951fb(0xf1),'meowKey':'help','type':a196_0xf951fb(0x139),'description':'Show\x20help'},{'name':a196_0xf951fb(0x134),'meowKey':'name','type':a196_0xf951fb(0xf9),'description':'Name','hidden':!![]},{'name':a196_0xf951fb(0xc9),'meowKey':a196_0xf951fb(0xc9),'type':'string','description':a196_0xf951fb(0xf2),'hidden':!![]},{'name':a196_0xf951fb(0x13c),'meowKey':a196_0xf951fb(0x13c),'type':a196_0xf951fb(0x139),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a196_0xf951fb(0x104),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x12c),'hidden':!![]},{'name':'output','meowKey':a196_0xf951fb(0xe7),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xe1),'hidden':!![]},{'name':a196_0xf951fb(0x121),'meowKey':a196_0xf951fb(0x121),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xff),'hidden':!![]},{'name':a196_0xf951fb(0xda),'meowKey':'datasetcode','type':'string','description':a196_0xf951fb(0xf5),'hidden':!![]},{'name':a196_0xf951fb(0xdd),'meowKey':a196_0xf951fb(0xdd),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x138),'hidden':!![]},{'name':a196_0xf951fb(0xd1),'meowKey':a196_0xf951fb(0x11d),'type':'boolean','description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x108),'hidden':!![]},{'name':a196_0xf951fb(0x106),'meowKey':'type','type':a196_0xf951fb(0xf9),'description':'Type\x20filter','hidden':!![]},{'name':a196_0xf951fb(0xe8),'meowKey':a196_0xf951fb(0xe8),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x136),'hidden':!![]},{'name':a196_0xf951fb(0x111),'meowKey':a196_0xf951fb(0x111),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xd2),'hidden':!![]},{'name':a196_0xf951fb(0xe6),'meowKey':'sqlName','type':a196_0xf951fb(0xf9),'description':'SQL\x20name','hidden':!![]},{'name':a196_0xf951fb(0x13d),'meowKey':a196_0xf951fb(0x13d),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x110),'hidden':!![]},{'name':a196_0xf951fb(0xed),'meowKey':'dbId','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x127),'hidden':!![]},{'name':a196_0xf951fb(0xde),'meowKey':'dbid','type':'string','description':a196_0xf951fb(0x127),'hidden':!![]},{'name':a196_0xf951fb(0x135),'meowKey':'description','type':'string','description':a196_0xf951fb(0x124),'hidden':!![]},{'name':a196_0xf951fb(0xf6),'meowKey':'descriptionFile','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x10b),'hidden':!![]},{'name':a196_0xf951fb(0xd6),'meowKey':'page','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x10c),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a196_0xf951fb(0xf9),'description':'Page\x20size','hidden':!![]},{'name':a196_0xf951fb(0x10d),'meowKey':a196_0xf951fb(0x10d),'type':'string','description':a196_0xf951fb(0xf8),'hidden':!![]},{'name':a196_0xf951fb(0xe0),'meowKey':'code','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x113),'hidden':!![]},{'name':'sql','meowKey':'sql','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x131),'hidden':!![]},{'name':a196_0xf951fb(0x12e),'meowKey':a196_0xf951fb(0x12e),'type':a196_0xf951fb(0xf9),'description':'Schemas','hidden':!![]},{'name':a196_0xf951fb(0xd3),'meowKey':'operation','type':'string','description':a196_0xf951fb(0x12f),'hidden':!![]},{'name':a196_0xf951fb(0xd9),'meowKey':a196_0xf951fb(0xd9),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xfe),'hidden':!![]},{'name':'skip-imports','meowKey':a196_0xf951fb(0xec),'type':a196_0xf951fb(0x139),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a196_0xf951fb(0x102),'meowKey':a196_0xf951fb(0x102),'type':a196_0xf951fb(0xf9),'description':'Config\x20key','hidden':!![]},{'name':a196_0xf951fb(0xd8),'meowKey':'value','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xcc),'hidden':!![]},{'name':a196_0xf951fb(0xdf),'meowKey':a196_0xf951fb(0xdf),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x109),'hidden':!![]},{'name':a196_0xf951fb(0x13b),'meowKey':a196_0xf951fb(0x13b),'type':a196_0xf951fb(0x139),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a196_0xf951fb(0x11e),'meowKey':a196_0xf951fb(0xce),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x11c),'hidden':!![]},{'name':'reveal','meowKey':a196_0xf951fb(0x12a),'type':a196_0xf951fb(0x139),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a196_0xf951fb(0xd5),'meowKey':a196_0xf951fb(0xd5),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xfa),'hidden':!![]},{'name':a196_0xf951fb(0xe4),'meowKey':a196_0xf951fb(0xe4),'type':a196_0xf951fb(0x139),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a196_0xf951fb(0x107),'meowKey':'remote','type':'boolean','description':a196_0xf951fb(0x120),'hidden':!![]},{'name':a196_0xf951fb(0x10e),'meowKey':a196_0xf951fb(0x10e),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xe5),'hidden':!![]},{'name':a196_0xf951fb(0xee),'meowKey':a196_0xf951fb(0x13a),'type':'string','description':a196_0xf951fb(0xf4),'hidden':!![]},{'name':a196_0xf951fb(0x126),'meowKey':a196_0xf951fb(0x126),'type':a196_0xf951fb(0xf9),'description':'Menu\x20label','hidden':!![]},{'name':a196_0xf951fb(0x116),'meowKey':a196_0xf951fb(0xea),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x11a),'hidden':!![]},{'name':'sort','meowKey':a196_0xf951fb(0x132),'type':a196_0xf951fb(0xf9),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a196_0xf951fb(0x133),'meowKey':'expectParentId','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xf3),'hidden':!![]},{'name':a196_0xf951fb(0x122),'meowKey':'expectPath','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xef),'hidden':!![]},{'name':'expected-children-count','meowKey':a196_0xf951fb(0x11f),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x13f),'hidden':!![]},{'name':a196_0xf951fb(0x112),'meowKey':a196_0xf951fb(0x130),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xe2),'hidden':!![]},{'name':'task-id','meowKey':a196_0xf951fb(0x11b),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xeb),'hidden':!![]},{'name':a196_0xf951fb(0x137),'meowKey':a196_0xf951fb(0x103),'type':a196_0xf951fb(0xf9),'description':'Operation\x20type','hidden':!![]},{'name':a196_0xf951fb(0xfc),'meowKey':'functionNode','type':'string','description':a196_0xf951fb(0xe9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0xf951fb(0x12d),a196_0xf951fb(0x118),a196_0xf951fb(0x117),a196_0xf951fb(0x105),'jq','dry-run','yes',a196_0xf951fb(0xcb),'ci']);export function buildMeowFlags(){const _0x32f589=a196_0xf951fb;return Object[_0x32f589(0x12b)](GLOBAL_FLAGS[_0x32f589(0xca)](_0x38bc41=>[_0x38bc41['meowKey'],{'type':_0x38bc41[_0x32f589(0x106)]}]));}function a196_0x5573(){const _0x8da5ac=['Use\x20global\x20config\x20scope','all','dbid','tags','code','Output\x20path','Comma-separated\x20menu\x20IDs','809091CnEGjP','confirm','Verbose\x20output','sql-name','output','file','Function\x20node','parentId','Asynchronous\x20task\x20ID','skipImports','db-id','expected-count','Expected\x20current\x20menu\x20path','690155jaJGXM','help','Title','Expected\x20current\x20parent\x20menu\x20id','Expected\x20affected\x20count','Dataset\x20code','description-file','<name>','Keyword\x20filter','string','Force\x20overwrite','@lovrabet/rabetbase-cli','function-node','1623650DSHDbk','Target\x20path','JSON\x20params','project','5535803bUAGWG','key','operationType','watch','format','type','remote','Record\x20ID','Tags','200yRnqzs','Description\x20file','Page\x20number','keyword','verbose','Force\x20non-interactive\x20mode\x20(CI)','SQL\x20name','sqlcode','menu-ids','Code\x20filter','645876BUIeoT','rabetbase','parent-id','env','app','<expr>','Parent\x20menu\x20id','taskId','Read\x20value\x20from\x20environment\x20variable','enableBffSave','from-env','expectedChildrenCount','Use\x20remote','params','expect-path','production\x20|\x20daily','Description','409960VisVBT','label','DB\x20ID','yes','global','reveal','fromEntries','Watch\x20mode','appcode','schemas','Operation\x20type','menuIds','SQL\x20string','sort','expect-parent-id','name','description','File\x20path','operation-type','Apply\x20to\x20all','boolean','expectedCount','stdin','clear','sqlname','Use\x20project\x20config\x20scope','Expected\x20current\x20child\x20count','3002778wAJCqa','title','map','non-interactive','Config\x20value','Select\x20app\x20profile\x20by\x20name','fromEnv','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','dry-run','enable-bff-save','SQL\x20code','operation','Skip\x20confirmation\x20for\x20high-risk\x20writes','force','page','<code>','value','target','datasetcode','4PymzfP'];a196_0x5573=function(){return _0x8da5ac;};return a196_0x5573();}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a197_0x250a(_0x24df64,_0x2579a6){_0x24df64=_0x24df64-0xfb;const _0x262d26=a197_0x262d();let _0x250adc=_0x262d26[_0x24df64];return _0x250adc;}const a197_0x167446=a197_0x250a;function a197_0x262d(){const _0x1163a8=['3EeFsMu','5829936EdyjcY','high-risk-write','3563034xiFqni','5615015sqMLUJ','production','5XvLKsi','123496FJByvy','137196FBivWV','en-US','compress','21677859ZkKobX','993798HnqPhF'];a197_0x262d=function(){return _0x1163a8;};return a197_0x262d();}(function(_0x9ab36c,_0x306c30){const _0x2d5ab3=a197_0x250a,_0x1b4899=_0x9ab36c();while(!![]){try{const _0x308040=-parseInt(_0x2d5ab3(0x101))/0x1*(parseInt(_0x2d5ab3(0xfc))/0x2)+parseInt(_0x2d5ab3(0x100))/0x3+-parseInt(_0x2d5ab3(0xfb))/0x4*(-parseInt(_0x2d5ab3(0x107))/0x5)+-parseInt(_0x2d5ab3(0x104))/0x6+-parseInt(_0x2d5ab3(0x105))/0x7+-parseInt(_0x2d5ab3(0x102))/0x8+parseInt(_0x2d5ab3(0xff))/0x9;if(_0x308040===_0x306c30)break;else _0x1b4899['push'](_0x1b4899['shift']());}catch(_0x50ac5c){_0x1b4899['push'](_0x1b4899['shift']());}}}(a197_0x262d,0x6b7cf));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a197_0x167446(0x106),'format':a197_0x167446(0xfe),'locale':a197_0x167446(0xfd),'riskLevel':a197_0x167446(0x103),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a197_0x167446(0xfe);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x323bd6=a198_0xa54c;(function(_0x4506f8,_0x3c9fe9){const _0x1bd918=a198_0xa54c,_0x1d4b57=_0x4506f8();while(!![]){try{const _0x3eb4ec=-parseInt(_0x1bd918(0x1ef))/0x1+-parseInt(_0x1bd918(0x1fe))/0x2*(-parseInt(_0x1bd918(0x1f0))/0x3)+parseInt(_0x1bd918(0x1f6))/0x4*(-parseInt(_0x1bd918(0x1ed))/0x5)+parseInt(_0x1bd918(0x1fa))/0x6+parseInt(_0x1bd918(0x1f3))/0x7+parseInt(_0x1bd918(0x1f5))/0x8+-parseInt(_0x1bd918(0x1fd))/0x9;if(_0x3eb4ec===_0x3c9fe9)break;else _0x1d4b57['push'](_0x1d4b57['shift']());}catch(_0x493404){_0x1d4b57['push'](_0x1d4b57['shift']());}}}(a198_0x519c,0x20b97));import{getEnv,isProduction}from'../constant/env.js';function a198_0x519c(){const _0x3da033=['902484RnZwgf','runtimeDomain','https://daily.lovrabet.com','https://user-daily.lovrabet.com','1351896Fvqyyr','userDomain','/web-app/app/','387909prElAm','302oryOXh','trim','5pBEBWr','https://user.lovrabet.com','58123ekYjjf','3561aUSIVE','https://api.lovrabet.com','https://daily-api.lovrabet.com','128093oqxNMn','/app/','304256Tauaki'];a198_0x519c=function(){return _0x3da033;};return a198_0x519c();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4c679e){const _0x5a8604=a198_0xa54c;customApiDomain=_0x4c679e?.['apiDomain'],customUserDomain=_0x4c679e?.[_0x5a8604(0x1fb)],customRuntimeDomain=_0x4c679e?.[_0x5a8604(0x1f7)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a198_0x323bd6(0x1ee):a198_0x323bd6(0x1f9));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a198_0x323bd6(0x1f1):a198_0x323bd6(0x1f2));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':'https://daily-runtime.lovrabet.com');export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a198_0x323bd6(0x1f8);function a198_0xa54c(_0x2a318c,_0x127af9){_0x2a318c=_0x2a318c-0x1ec;const _0x519c93=a198_0x519c();let _0xa54cc0=_0x519c93[_0x2a318c];return _0xa54cc0;}export const getAppBaseUrl=_0x20eb52=>{const _0x529b2f=a198_0x323bd6,_0x54ac0c=encodeURIComponent(_0x20eb52[_0x529b2f(0x1ec)]());return isProduction(getEnv())?getAppDomain()+_0x529b2f(0x1f4)+_0x54ac0c:getAppDomain()+_0x529b2f(0x1fc)+_0x54ac0c;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x586b79=a199_0x38f6;function a199_0x38f6(_0x5cc1a4,_0x21c8b1){_0x5cc1a4=_0x5cc1a4-0x16b;const _0xcd32eb=a199_0xcd32();let _0x38f6e1=_0xcd32eb[_0x5cc1a4];return _0x38f6e1;}(function(_0x707905,_0x3f160b){const _0x29be73=a199_0x38f6,_0x5cccec=_0x707905();while(!![]){try{const _0x1de34e=parseInt(_0x29be73(0x16e))/0x1+-parseInt(_0x29be73(0x16c))/0x2*(-parseInt(_0x29be73(0x177))/0x3)+parseInt(_0x29be73(0x16b))/0x4*(parseInt(_0x29be73(0x170))/0x5)+-parseInt(_0x29be73(0x16d))/0x6+-parseInt(_0x29be73(0x172))/0x7*(parseInt(_0x29be73(0x16f))/0x8)+parseInt(_0x29be73(0x174))/0x9+-parseInt(_0x29be73(0x176))/0xa;if(_0x1de34e===_0x3f160b)break;else _0x5cccec['push'](_0x5cccec['shift']());}catch(_0x15f764){_0x5cccec['push'](_0x5cccec['shift']());}}}(a199_0xcd32,0xab18d));export const RABETBASE_ENV_VALUES=[a199_0x586b79(0x179),a199_0x586b79(0x171)];export function normalizeEnv(_0x15e9af){const _0x5b58be=a199_0x586b79;return _0x15e9af===_0x5b58be(0x175)?_0x5b58be(0x179):_0x15e9af;}export function isProduction(_0x1a5243){const _0x237448=a199_0x586b79;return normalizeEnv(_0x1a5243)===_0x237448(0x179);}export function isDaily(_0x308112){const _0x4852d8=a199_0x586b79;return normalizeEnv(_0x308112)===_0x4852d8(0x171);}export function isDev(_0x40b989){const _0x416f55=a199_0x586b79,_0x4f86b7=normalizeEnv(_0x40b989);return _0x4f86b7===_0x416f55(0x178)||_0x4f86b7===_0x416f55(0x173);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a199_0x586b79(0x179));function a199_0xcd32(){const _0x17b7d5=['1219752aWINox','1060djbOuc','daily','42SZIcsF','dev','11238993YWYmIC','online','7933350gcwTTM','1638108EXoEYV','development','production','17852zKwUeO','2gJRPIW','4502682CgpTYL','418440WilFGz'];a199_0xcd32=function(){return _0x17b7d5;};return a199_0xcd32();}export function getEnv(){return env;}export function initEnv(_0x2b7472){env=normalizeEnv(_0x2b7472);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x2fa73d=a200_0x41df;(function(_0x7eb5fb,_0x16d5fe){const _0x47283b=a200_0x41df,_0x376c0d=_0x7eb5fb();while(!![]){try{const _0x34cac5=-parseInt(_0x47283b(0x1e8))/0x1*(parseInt(_0x47283b(0x1ea))/0x2)+-parseInt(_0x47283b(0x1e9))/0x3+parseInt(_0x47283b(0x1e6))/0x4+parseInt(_0x47283b(0x1e7))/0x5+-parseInt(_0x47283b(0x1ef))/0x6*(parseInt(_0x47283b(0x1eb))/0x7)+-parseInt(_0x47283b(0x1ee))/0x8+parseInt(_0x47283b(0x1ec))/0x9*(parseInt(_0x47283b(0x1e4))/0xa);if(_0x34cac5===_0x16d5fe)break;else _0x376c0d['push'](_0x376c0d['shift']());}catch(_0x4e348d){_0x376c0d['push'](_0x376c0d['shift']());}}}(a200_0x2f40,0x96764));function a200_0x41df(_0x37b1ba,_0x3cc587){_0x37b1ba=_0x37b1ba-0x1e4;const _0x2f4028=a200_0x2f40();let _0x41dff4=_0x2f4028[_0x37b1ba];return _0x41dff4;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a200_0x2fa73d(0x1e5),a200_0x2fa73d(0x1ed),a200_0x2fa73d(0x1f0)];function a200_0x2f40(){const _0x56735d=['4396000Qggpsf','2OOgxqf','3662460CnqGgO','267532pvlZJX','2598239INITQI','9sQPtMQ','pretty','7366928DDLJto','18YZuKYj','compress','22879910DDZbch','json','3887400LliFHm'];a200_0x2f40=function(){return _0x56735d;};return a200_0x2f40();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a201_0x450e74=a201_0x4baa;function a201_0x4baa(_0x322094,_0x46f088){_0x322094=_0x322094-0xa6;const _0xfe1d0c=a201_0xfe1d();let _0x4baa4b=_0xfe1d0c[_0x322094];return _0x4baa4b;}(function(_0x3bac98,_0x23e580){const _0x189ec7=a201_0x4baa,_0x5526bc=_0x3bac98();while(!![]){try{const _0x4a0efa=-parseInt(_0x189ec7(0xae))/0x1+-parseInt(_0x189ec7(0xaa))/0x2*(-parseInt(_0x189ec7(0xaf))/0x3)+parseInt(_0x189ec7(0xa7))/0x4+parseInt(_0x189ec7(0xa9))/0x5+parseInt(_0x189ec7(0xad))/0x6+parseInt(_0x189ec7(0xab))/0x7+parseInt(_0x189ec7(0xa8))/0x8*(-parseInt(_0x189ec7(0xac))/0x9);if(_0x4a0efa===_0x23e580)break;else _0x5526bc['push'](_0x5526bc['shift']());}catch(_0x342e8f){_0x5526bc['push'](_0x5526bc['shift']());}}}(a201_0xfe1d,0xea4a1));export const DEFAULT_API_DIR=a201_0x450e74(0xa6);function a201_0xfe1d(){const _0x5f587e=['6148276qTORui','2792oLmmai','8926005PHVnyZ','285582OXNOtP','260393YbRvWB','76185GVscTg','2969388OagUUg','511597ufybJV','12OkJMCG','./src/api'];a201_0xfe1d=function(){return _0x5f587e;};return a201_0xfe1d();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a202_0x740c(){const _0x31cefa=['21qUHmwq','611086lnqiiO','1010mkWlBg','high-risk-write','13542FrckkZ','6773388WDdmYD','write','40WYCtNR','read','81788TzPYHO','510nrzGae','89881ICXmtT','211848jZFywK','2zNsGDK','938943maAthI'];a202_0x740c=function(){return _0x31cefa;};return a202_0x740c();}function a202_0xb7bb(_0x3ab825,_0x416c12){_0x3ab825=_0x3ab825-0x114;const _0x740cf1=a202_0x740c();let _0xb7bb2=_0x740cf1[_0x3ab825];return _0xb7bb2;}const a202_0x185160=a202_0xb7bb;(function(_0x24d41b,_0x2b2831){const _0x28d2de=a202_0xb7bb,_0xd2d7c3=_0x24d41b();while(!![]){try{const _0x272458=parseInt(_0x28d2de(0x11c))/0x1*(parseInt(_0x28d2de(0x11f))/0x2)+parseInt(_0x28d2de(0x11e))/0x3*(parseInt(_0x28d2de(0x11b))/0x4)+parseInt(_0x28d2de(0x119))/0x5*(-parseInt(_0x28d2de(0x122))/0x6)+-parseInt(_0x28d2de(0x118))/0x7+-parseInt(_0x28d2de(0x116))/0x8*(parseInt(_0x28d2de(0x11d))/0x9)+parseInt(_0x28d2de(0x120))/0xa*(parseInt(_0x28d2de(0x11a))/0xb)+-parseInt(_0x28d2de(0x114))/0xc;if(_0x272458===_0x2b2831)break;else _0xd2d7c3['push'](_0xd2d7c3['shift']());}catch(_0x429d0f){_0xd2d7c3['push'](_0xd2d7c3['shift']());}}}(a202_0x740c,0x74f85));export const RISK_LEVEL_VALUES=[a202_0x185160(0x117),a202_0x185160(0x115),a202_0x185160(0x121)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x533d38,_0x1d9278){const _0x3be4b6=a203_0x38da,_0x490311=_0x533d38();while(!![]){try{const _0x3348be=-parseInt(_0x3be4b6(0x18e))/0x1+parseInt(_0x3be4b6(0x1a0))/0x2+parseInt(_0x3be4b6(0x189))/0x3+parseInt(_0x3be4b6(0x1a2))/0x4*(parseInt(_0x3be4b6(0x18c))/0x5)+-parseInt(_0x3be4b6(0x196))/0x6*(-parseInt(_0x3be4b6(0x1a4))/0x7)+parseInt(_0x3be4b6(0x18b))/0x8+-parseInt(_0x3be4b6(0x19a))/0x9*(parseInt(_0x3be4b6(0x19c))/0xa);if(_0x3348be===_0x1d9278)break;else _0x490311['push'](_0x490311['shift']());}catch(_0x26abea){_0x490311['push'](_0x490311['shift']());}}}(a203_0x30cf,0x320b7));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x587395){const _0x5be3c5=a203_0x38da;return typeof _0x587395===_0x5be3c5(0x18f)&&_0x587395[_0x5be3c5(0x19d)]()?_0x587395[_0x5be3c5(0x19d)]():undefined;}function appProfiles(_0x1e217c){const _0x27e801=a203_0x38da;return _0x1e217c[_0x27e801(0x199)]&&typeof _0x1e217c[_0x27e801(0x199)]===_0x27e801(0x187)?_0x1e217c[_0x27e801(0x199)]:{};}function resolveDefaultAppName(_0x426e07){const _0x12f7cb=a203_0x38da,_0x443ec2=stringConfigValue(_0x426e07['defaultApp']);if(_0x443ec2)return _0x443ec2;return Object[_0x12f7cb(0x1a1)](appProfiles(_0x426e07))[0x0];}function resolveTopLevelAppCode(_0xfb9f21){const _0x2576b8=a203_0x38da;return stringConfigValue(_0xfb9f21[_0x2576b8(0x1a5)])||stringConfigValue(_0xfb9f21[_0x2576b8(0x19f)]);}function a203_0x38da(_0x20179d,_0x3eae3d){_0x20179d=_0x20179d-0x180;const _0x30cf52=a203_0x30cf();let _0x38da75=_0x30cf52[_0x20179d];return _0x38da75;}function a203_0x30cf(){const _0x36189d=['app','88436nnCaju','keys','383140PXXRwV','riskLevel','7RXriCA','appcode','daily','ENV','FORMAT','pageSize','locale','format','true','RISK_LEVEL','object','cookie','200829NmGOCe','read','2562976IvIpab','10dPEjsq','PAGE_SIZE','121704omVrhV','string','env','apiDir','entries','maxRisk','COOKIE','globalConfig','1896726VSHqMX','MAX_RISK','accessKey','apps','9621blqQYQ','length','5730ZPDobw','trim','inherit'];a203_0x30cf=function(){return _0x36189d;};return a203_0x30cf();}export function resolveAppConfig({raw:_0x423f9d,flags:_0x67e062,layers:_0x3145b9,readEnv:_0x10938c}){const _0x4c036a=a203_0x38da,_0x33d005=_0x3145b9?.['projectConfig']??{},_0x1012b3=_0x3145b9?.[_0x4c036a(0x195)]??{},_0x5ac3f4=Object[_0x4c036a(0x1a1)](_0x33d005)[_0x4c036a(0x19b)]>0x0,_0x2322bc=!_0x5ac3f4||_0x33d005[_0x4c036a(0x19e)]===!![],_0x14329c=_0x5ac3f4?resolveDefaultAppName(_0x33d005):undefined,_0x3ca976=_0x2322bc?resolveDefaultAppName(_0x1012b3):undefined,_0x14197b=stringConfigValue(_0x67e062['app']),_0x4e7f09=_0x10938c('APP'),_0x20fa38={};if(_0x423f9d[_0x4c036a(0x199)]&&typeof _0x423f9d[_0x4c036a(0x199)]===_0x4c036a(0x187))for(const [_0x3f3273,_0x1fe6b0]of Object[_0x4c036a(0x192)](_0x423f9d[_0x4c036a(0x199)])){_0x1fe6b0&&typeof _0x1fe6b0==='object'&&_0x1fe6b0['appcode']&&(_0x20fa38[_0x3f3273]=_0x1fe6b0);}const _0x1f7b46=_0x423f9d['defaultApp']||undefined,_0x3dbf9c=Object['keys'](_0x20fa38)['length']>0x0,_0x1362c8=_0x14197b||_0x14329c||_0x4e7f09||_0x3ca976||_0x1f7b46||undefined,_0x52a748=stringConfigValue(_0x67e062[_0x4c036a(0x1a5)]),_0x5b3492=_0x52a748?Object[_0x4c036a(0x192)](_0x20fa38)['find'](([,_0x5278fa])=>_0x5278fa?.[_0x4c036a(0x1a5)]===_0x52a748):undefined,_0x478467=_0x5b3492?.[0x0],_0x5283d9=_0x5b3492?.[0x1],_0x2ab661=_0x52a748?_0x478467:_0x1362c8;let _0x1d58a9=_0x2ab661&&_0x20fa38[_0x2ab661]?_0x20fa38[_0x2ab661]:undefined;_0x52a748&&_0x5283d9&&(_0x1d58a9=_0x5283d9);const _0x3cd03b=_0x52a748?_0x5283d9??_0x1d58a9:_0x1d58a9,_0x27a873=!_0x14197b&&!_0x14329c&&_0x4e7f09&&_0x2ab661===_0x4e7f09,_0x4f3c36=_0x14197b||(_0x27a873?_0x4e7f09:undefined)||(_0x52a748?_0x478467:undefined),_0x542cc8=_0x3cd03b?.[_0x4c036a(0x1a5)],_0x4692b8=_0x5ac3f4?resolveTopLevelAppCode(_0x33d005):undefined,_0x1bb3c1=_0x2322bc?resolveTopLevelAppCode(_0x1012b3):undefined,_0x47f40e=_0x14197b||_0x14329c?_0x542cc8:undefined,_0x45ad17=!_0x14197b&&!_0x14329c?_0x542cc8:undefined,_0x32dd01=_0x52a748||_0x47f40e||_0x4692b8||_0x45ad17||_0x1bb3c1||undefined,_0x3e4851=_0x5ac3f4?stringConfigValue(_0x33d005[_0x4c036a(0x190)]):undefined,_0x42f28a=_0x2322bc?stringConfigValue(_0x1012b3[_0x4c036a(0x190)]):undefined,_0x69219d=_0x67e062[_0x4c036a(0x190)]||_0x3cd03b?.[_0x4c036a(0x190)]||_0x3e4851||_0x10938c(_0x4c036a(0x180))||_0x42f28a||_0x423f9d['env']||DEFAULT_CONFIG_VALUES[_0x4c036a(0x190)],_0x346b36=_0x3cd03b?.[_0x4c036a(0x183)]||_0x423f9d[_0x4c036a(0x183)]||DEFAULT_CONFIG_VALUES['locale'],_0x393558=_0x10938c(_0x4c036a(0x194))||_0x3cd03b?.[_0x4c036a(0x188)]||_0x423f9d[_0x4c036a(0x188)]||undefined,_0x29d3b8=_0x10938c('ACCESS_KEY')||_0x3cd03b?.[_0x4c036a(0x198)]||_0x423f9d[_0x4c036a(0x198)]||undefined,_0x27a8e5=_0x67e062[_0x4c036a(0x184)]||_0x10938c(_0x4c036a(0x181))||_0x3cd03b?.[_0x4c036a(0x184)]||_0x423f9d[_0x4c036a(0x184)],_0x2ec50d=normalizeLegacyOutputFormat(_0x27a8e5),_0x4e2ec0=_0x10938c(_0x4c036a(0x18d))||_0x3cd03b?.[_0x4c036a(0x182)]||_0x423f9d[_0x4c036a(0x182)],_0x181d33=_0x4e2ec0?Number(_0x4e2ec0)||undefined:undefined,_0x20e194=_0x10938c(_0x4c036a(0x186))||_0x10938c(_0x4c036a(0x197))||_0x3cd03b?.[_0x4c036a(0x1a3)]||_0x423f9d[_0x4c036a(0x1a3)]||_0x423f9d[_0x4c036a(0x193)],_0x5b13de=_0x20e194===_0x4c036a(0x18a)||_0x20e194==='write'?_0x20e194:DEFAULT_CONFIG_VALUES[_0x4c036a(0x1a3)],_0x21f335=_0x10938c('VERBOSE'),_0x3ab9a1=_0x21f335==='1'||_0x21f335===_0x4c036a(0x185),_0x14e991=_0x3cd03b?.[_0x4c036a(0x191)]||_0x423f9d[_0x4c036a(0x191)]||DEFAULT_CONFIG_VALUES[_0x4c036a(0x191)],_0x3eeb60=isDaily(normalizeEnv(String(_0x69219d)))?_0x4c036a(0x1a6):'production';return{'appCode':typeof _0x32dd01===_0x4c036a(0x18f)&&_0x32dd01[_0x4c036a(0x19d)]()?_0x32dd01['trim']():undefined,'env':_0x3eeb60,'locale':_0x346b36,'cookie':_0x393558,'accessKey':_0x29d3b8,'format':_0x2ec50d,'pageSize':_0x181d33,'riskLevel':_0x5b13de,'verbose':_0x3ab9a1,'apiDir':_0x14e991,'apps':_0x20fa38,'defaultApp':_0x1f7b46,'currentApp':_0x3dbf9c?_0x2ab661:undefined,'explicitAppName':_0x4f3c36};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a204_0x2ac5(_0x471171,_0x4e9390){_0x471171=_0x471171-0x11b;const _0x5253a5=a204_0x5253();let _0x2ac506=_0x5253a5[_0x471171];return _0x2ac506;}(function(_0x5c5d83,_0x233e21){const _0x5f1f13=a204_0x2ac5,_0xad6d71=_0x5c5d83();while(!![]){try{const _0x559502=parseInt(_0x5f1f13(0x11e))/0x1*(-parseInt(_0x5f1f13(0x11b))/0x2)+parseInt(_0x5f1f13(0x122))/0x3+parseInt(_0x5f1f13(0x121))/0x4*(parseInt(_0x5f1f13(0x125))/0x5)+-parseInt(_0x5f1f13(0x124))/0x6+parseInt(_0x5f1f13(0x123))/0x7+-parseInt(_0x5f1f13(0x120))/0x8+parseInt(_0x5f1f13(0x11c))/0x9;if(_0x559502===_0x233e21)break;else _0xad6d71['push'](_0xad6d71['shift']());}catch(_0x1d1c7b){_0xad6d71['push'](_0xad6d71['shift']());}}}(a204_0x5253,0x3df61));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x29405d){const _0x556239=a204_0x2ac5,{getCookie:_0x53a7f1}=await import(_0x556239(0x11f)),_0x18f940=_0x29405d[_0x556239(0x11d)]||_0x53a7f1(),_0x5daa59=_0x18f940?await getIsSessionValid():![];return{'cookie':_0x18f940,'isLoggedIn':_0x5daa59,async 'getOrLogin'(){if(_0x18f940&&_0x5daa59)return _0x18f940;throw CliErrors['authRequired']();}};}function a204_0x5253(){const _0x5c415b=['719010MmRZHZ','2362479ikyDaL','1043922aQZRFt','75OwRbEX','148102pTeFfc','2493081qGxnTN','cookie','2fqwmVh','../auth/get-cookie.js','2307712atNVUh','2712NFbaCd'];a204_0x5253=function(){return _0x5c415b;};return a204_0x5253();}
|