@lovrabet/rabetbase-cli 2.3.10 → 2.3.11
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/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/logs/index.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/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 -0
- package/lib/commands/menu/regroup-start.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/update.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/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/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/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
|
-
|
|
1
|
+
function a177_0x39d2(){const _0x5a68f0=['4158535MMXRUB','validation','bool','string','utf-8','index_columns','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','indexes','size','950476OHVcVu','filter','tables','Table\x20\x22','10464744JbHZJD','schema:','isDangerous','file','schemas','dataset','9wzsweY','push','24228180XsUbjR','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','1926792hUxjet','reason','unshift','isArray','name','dbtableConfig','boolean','pkField','fields','\x22\x20not\x20found\x20or\x20not\x20accessible','sqlType','validate','Provide\x20--file\x20or\x20--sql','39nBKTXH','\x22\x20not\x20found\x20in\x20any\x20dataset','flagMissing','SQL\x20schema\x20validation','isSelectOnly','indexName','str','columns','tableName','find','cwd','7222QIYysx','length','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','message','parameters','appCode','columnNames','4NAicHc','index_name','trim','valid','10529099BnrHBt','map','sql','flatMap','index_type','split','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'];a177_0x39d2=function(){return _0x5a68f0;};return a177_0x39d2();}const a177_0x3989c5=a177_0x1a88;(function(_0x457387,_0x3a0753){const _0x33e731=a177_0x1a88,_0x33e816=_0x457387();while(!![]){try{const _0x1c2ae5=-parseInt(_0x33e731(0x223))/0x1+-parseInt(_0x33e731(0x208))/0x2*(parseInt(_0x33e731(0x1fd))/0x3)+-parseInt(_0x33e731(0x20f))/0x4*(-parseInt(_0x33e731(0x21a))/0x5)+parseInt(_0x33e731(0x227))/0x6+parseInt(_0x33e731(0x213))/0x7+parseInt(_0x33e731(0x1f0))/0x8+parseInt(_0x33e731(0x22d))/0x9*(-parseInt(_0x33e731(0x22f))/0xa);if(_0x1c2ae5===_0x3a0753)break;else _0x33e816['push'](_0x33e816['shift']());}catch(_0x5aafef){_0x33e816['push'](_0x33e816['shift']());}}}(a177_0x39d2,0xdbdf8));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a177_0x1a88(_0x575876,_0x2055a4){_0x575876=_0x575876-0x1f0;const _0x39d229=a177_0x39d2();let _0x1a8885=_0x39d229[_0x575876];return _0x1a8885;}export const sqlValidate={'service':a177_0x3989c5(0x215),'command':a177_0x3989c5(0x1fb),'description':a177_0x3989c5(0x220),'risk':'read','flags':[{'name':'file','type':'string','description':a177_0x3989c5(0x219)},{'name':'sql','type':a177_0x3989c5(0x21d),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a177_0x3989c5(0x22b),'type':'string','description':a177_0x3989c5(0x230)},{'name':'check-indexes','type':a177_0x3989c5(0x1f6),'description':a177_0x3989c5(0x20a)}],async 'execute'(_0x25538b){const _0x5786bb=a177_0x3989c5,_0x471b6e=_0x25538b[_0x5786bb(0x203)]('file'),_0x1d5bc6=_0x25538b[_0x5786bb(0x203)]('sql'),_0x5cf127=_0x25538b[_0x5786bb(0x203)](_0x5786bb(0x22b)),_0x249f0e=_0x25538b[_0x5786bb(0x21c)]('check-indexes');if(!_0x471b6e&&!_0x1d5bc6)throw CliErrors[_0x5786bb(0x1ff)](_0x5786bb(0x22a),_0x5786bb(0x1fc));if(_0x249f0e&&!_0x5cf127)throw CliErrors[_0x5786bb(0x21b)]('--check-indexes\x20requires\x20--schemas.');let _0x68f2c;if(_0x471b6e){const _0x140639=resolve(process[_0x5786bb(0x207)](),_0x471b6e);if(!existsSync(_0x140639))throw CliErrors[_0x5786bb(0x21b)]('File\x20not\x20found:\x20'+_0x140639);_0x68f2c=readFileSync(_0x140639,_0x5786bb(0x21e));}else _0x68f2c=_0x1d5bc6;const _0x2c8ccf=validateSql(_0x68f2c),_0x4f373e={'valid':_0x2c8ccf[_0x5786bb(0x212)],'sqlType':_0x2c8ccf['sqlType']['type'],'isSelectOnly':_0x2c8ccf[_0x5786bb(0x1fa)][_0x5786bb(0x201)],'isDangerous':_0x2c8ccf[_0x5786bb(0x1fa)][_0x5786bb(0x229)],'tables':_0x2c8ccf[_0x5786bb(0x225)],'parameters':_0x2c8ccf[_0x5786bb(0x20c)],'message':_0x2c8ccf[_0x5786bb(0x20b)]};_0x2c8ccf[_0x5786bb(0x1fa)]['reason']&&(_0x4f373e[_0x5786bb(0x1f1)]=_0x2c8ccf['sqlType']['reason']);if(_0x5cf127&&_0x2c8ccf[_0x5786bb(0x212)]){const _0x414b30=_0x5cf127[_0x5786bb(0x218)](',')[_0x5786bb(0x214)](_0x29d5be=>_0x29d5be[_0x5786bb(0x211)]())[_0x5786bb(0x224)](Boolean),_0x3c045e=[],_0x1df1fc=[],_0x50e4fb=filterDbTableBackedDatasets(await listDatasets(_0x25538b[_0x5786bb(0x20d)])),_0x24fed5=new Map(_0x50e4fb[_0x5786bb(0x214)](_0x30bcb3=>[_0x30bcb3[_0x5786bb(0x1f5)]?.[_0x5786bb(0x205)]?.['toLowerCase'](),_0x30bcb3]));for(const _0x4dc4c of _0x2c8ccf[_0x5786bb(0x225)]){const _0x39a877=_0x24fed5['get'](_0x4dc4c['toLowerCase']());!_0x39a877&&_0x3c045e[_0x5786bb(0x22e)](_0x5786bb(0x226)+_0x4dc4c+_0x5786bb(0x1fe));}for(const _0x201f73 of _0x414b30){let _0x1a9f84;try{_0x1a9f84=await getDatasetDetail(_0x201f73);}catch{_0x3c045e[_0x5786bb(0x22e)]('Dataset\x20\x22'+_0x201f73+_0x5786bb(0x1f9));continue;}assertDatasetIsDbTableBacked(_0x1a9f84,_0x5786bb(0x200));const _0x34ac76=Array[_0x5786bb(0x1f3)](_0x1a9f84[_0x5786bb(0x1f8)])?_0x1a9f84[_0x5786bb(0x1f8)]:[],_0x190be7=new Set(_0x34ac76[_0x5786bb(0x214)](_0x1f87d4=>_0x1f87d4['name']?.['toLowerCase']())),_0x171cf7=_0x1a9f84['dbtableConfig']?.[_0x5786bb(0x205)]||_0x1a9f84[_0x5786bb(0x205)]||_0x201f73;_0x4f373e[_0x5786bb(0x228)+_0x171cf7]={'code':_0x201f73,'tableName':_0x171cf7,'fieldCount':_0x190be7[_0x5786bb(0x222)],'fields':Array['from'](_0x190be7)};if(_0x249f0e){const _0x52d041=normalizeDatasetIndexes(_0x1a9f84);_0x1df1fc[_0x5786bb(0x22e)]({'tableName':_0x171cf7,..._0x52d041});}}_0x3c045e['length']>0x0&&(_0x4f373e['schemaWarnings']=_0x3c045e),_0x249f0e&&(_0x4f373e['joinAudit']=auditSqlJoinIndexes(_0x68f2c,_0x1df1fc));}return{'ok':_0x2c8ccf[_0x5786bb(0x212)],'data':_0x4f373e,'message':_0x2c8ccf[_0x5786bb(0x20b)]};}};function normalizeDatasetIndexes(_0x3691a4){const _0x3b5de5=a177_0x3989c5,_0x5970aa=Array[_0x3b5de5(0x1f3)](_0x3691a4?.[_0x3b5de5(0x22c)]?.[_0x3b5de5(0x221)])?_0x3691a4[_0x3b5de5(0x22c)][_0x3b5de5(0x221)]:Array['isArray'](_0x3691a4?.[_0x3b5de5(0x221)])?_0x3691a4['indexes']:[],_0x49cac7=_0x5970aa[_0x3b5de5(0x216)](_0x253ebb=>{const _0x1332c4=_0x3b5de5,_0x27c38c=Array[_0x1332c4(0x1f3)](_0x253ebb?.[_0x1332c4(0x21f)])?_0x253ebb['index_columns']:Array[_0x1332c4(0x1f3)](_0x253ebb?.[_0x1332c4(0x20e)])?_0x253ebb['columnNames']:Array[_0x1332c4(0x1f3)](_0x253ebb?.[_0x1332c4(0x204)])?_0x253ebb[_0x1332c4(0x204)]:[],_0x155395=_0x27c38c[_0x1332c4(0x224)](_0x3e3387=>typeof _0x3e3387==='string')[_0x1332c4(0x214)](_0x56970f=>_0x56970f['trim']())[_0x1332c4(0x224)](Boolean);if(_0x155395['length']===0x0)return[];const _0x2f9537=[_0x253ebb?.[_0x1332c4(0x202)],_0x253ebb?.[_0x1332c4(0x210)],_0x253ebb?.[_0x1332c4(0x1f4)]][_0x1332c4(0x206)](_0x2b244c=>typeof _0x2b244c===_0x1332c4(0x21d)&&_0x2b244c[_0x1332c4(0x211)]()),_0xc7c68=[_0x253ebb?.[_0x1332c4(0x217)],_0x253ebb?.['type']]['find'](_0x4bda84=>typeof _0x4bda84===_0x1332c4(0x21d)&&_0x4bda84[_0x1332c4(0x211)]());return[{..._0x2f9537?{'name':_0x2f9537[_0x1332c4(0x211)]()}:{},..._0xc7c68?{'type':_0xc7c68['trim']()}:{},'columns':_0x155395}];}),_0x46d5fc=[..._0x49cac7],_0x5587af=typeof _0x3691a4?.[_0x3b5de5(0x1f5)]?.[_0x3b5de5(0x1f7)]===_0x3b5de5(0x21d)?_0x3691a4['dbtableConfig'][_0x3b5de5(0x1f7)][_0x3b5de5(0x218)](',')[_0x3b5de5(0x214)](_0x379291=>_0x379291[_0x3b5de5(0x211)]())[_0x3b5de5(0x224)](Boolean):[];return _0x5587af[_0x3b5de5(0x209)]>0x0&&_0x46d5fc[_0x3b5de5(0x1f2)]({'type':'primary','columns':_0x5587af}),{'indexes':_0x46d5fc,'metadataAvailable':_0x49cac7[_0x3b5de5(0x209)]>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ff6f7,_0x260841){const _0x369d76=a178_0x3cf8,_0x2634f8=_0x1ff6f7();while(!![]){try{const _0x1a65cc=-parseInt(_0x369d76(0x8a))/0x1*(parseInt(_0x369d76(0x90))/0x2)+-parseInt(_0x369d76(0x8b))/0x3*(parseInt(_0x369d76(0x8f))/0x4)+-parseInt(_0x369d76(0x8e))/0x5*(-parseInt(_0x369d76(0x86))/0x6)+-parseInt(_0x369d76(0x88))/0x7+-parseInt(_0x369d76(0x8d))/0x8+-parseInt(_0x369d76(0x87))/0x9+-parseInt(_0x369d76(0x8c))/0xa*(-parseInt(_0x369d76(0x89))/0xb);if(_0x1a65cc===_0x260841)break;else _0x2634f8['push'](_0x2634f8['shift']());}catch(_0x50613d){_0x2634f8['push'](_0x2634f8['shift']());}}}(a178_0x4eb5,0x8b97b));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a178_0x3cf8(_0x2e65d3,_0xacdecb){_0x2e65d3=_0x2e65d3-0x86;const _0x4eb5b6=a178_0x4eb5();let _0x3cf8c8=_0x4eb5b6[_0x2e65d3];return _0x3cf8c8;}function a178_0x4eb5(){const _0x1810ad=['4fCTXBJ','6106BPKZtp','6234hOlEuc','795492ylUpqj','5816013kWicyP','3096082bvvbem','213AruOMa','539811jqRlZI','60NRrfsk','52104yUbota','3075fRJYGj'];a178_0x4eb5=function(){return _0x1810ad;};return a178_0x4eb5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0x20959a=a179_0x1949;(function(_0x5ca224,_0x1f9471){const _0x255aee=a179_0x1949,_0xbeb9eb=_0x5ca224();while(!![]){try{const _0x206b26=parseInt(_0x255aee(0x1e2))/0x1+-parseInt(_0x255aee(0x1e0))/0x2*(-parseInt(_0x255aee(0x1d6))/0x3)+-parseInt(_0x255aee(0x1da))/0x4+-parseInt(_0x255aee(0x1d9))/0x5*(parseInt(_0x255aee(0x1de))/0x6)+parseInt(_0x255aee(0x1db))/0x7+-parseInt(_0x255aee(0x1d7))/0x8*(parseInt(_0x255aee(0x1e4))/0x9)+-parseInt(_0x255aee(0x1e5))/0xa*(-parseInt(_0x255aee(0x1dd))/0xb);if(_0x206b26===_0x1f9471)break;else _0xbeb9eb['push'](_0xbeb9eb['shift']());}catch(_0x5f4289){_0xbeb9eb['push'](_0xbeb9eb['shift']());}}}(a179_0x9c2a,0x650e9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a179_0x1949(_0x5487e6,_0x3353f8){_0x5487e6=_0x5487e6-0x1ce;const _0x9c2a60=a179_0x9c2a();let _0x1949ac=_0x9c2a60[_0x5487e6];return _0x1949ac;}function a179_0x9c2a(){const _0x3f602e=['1042915zgOalW','1766016YipzmU','716891fhdZUB','task','32021pVGkDf','6cRdYWH','appCode','2VEfiYm','taskId','542480NnkQvT',',\x20received\x20','1284282ZbAZeo','1310DSlnpt','string','compress','task-id','trim','str','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','apiError','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','flagMissing','1397628pyaRNt','24SEWYca','cookie'];a179_0x9c2a=function(){return _0x3f602e;};return a179_0x9c2a();}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':a179_0x20959a(0x1dc),'command':'status','description':a179_0x20959a(0x1d2),'risk':'read','defaultOutputFormat':a179_0x20959a(0x1ce),'structuredErrors':!![],'flags':[{'name':a179_0x20959a(0x1cf),'type':a179_0x20959a(0x1e6),'required':!![],'description':a179_0x20959a(0x1d4)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xc38601){const _0x40f1ec=a179_0x20959a;if(!_0xc38601[_0x40f1ec(0x1d1)](_0x40f1ec(0x1cf))[_0x40f1ec(0x1d0)]())throw CliErrors[_0x40f1ec(0x1d5)](_0x40f1ec(0x1cf));},async 'execute'(_0x47fa45){const _0x5273aa=a179_0x20959a,_0x437d1f=_0x47fa45[_0x5273aa(0x1d1)](_0x5273aa(0x1cf))[_0x5273aa(0x1d0)](),_0x8d43d3=normalizeAsyncTask(await getAsyncTaskStatus(_0x437d1f,_0x47fa45[_0x5273aa(0x1df)],_0x47fa45[_0x5273aa(0x1d8)]));if(_0x8d43d3[_0x5273aa(0x1e1)]!==_0x437d1f)throw CliErrors[_0x5273aa(0x1d3)]('Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20'+_0x437d1f+_0x5273aa(0x1e3)+_0x8d43d3[_0x5273aa(0x1e1)]+'.');const _0x5e2449=buildAsyncTaskStatusCommand(_0x8d43d3[_0x5273aa(0x1e1)],_0x47fa45[_0x5273aa(0x1df)]);return{'ok':!![],'message':asyncTaskMessage(_0x8d43d3),'data':{'appCode':_0x47fa45[_0x5273aa(0x1df)],..._0x8d43d3,'query':_0x8d43d3['isTerminal']?null:{'command':_0x5e2449}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a180_0x1c5476=a180_0x25bd;(function(_0x2ae4ec,_0x30e2e5){const _0x3eee7a=a180_0x25bd,_0x596ac0=_0x2ae4ec();while(!![]){try{const _0x1ea0d6=-parseInt(_0x3eee7a(0x16d))/0x1*(parseInt(_0x3eee7a(0x166))/0x2)+-parseInt(_0x3eee7a(0x16e))/0x3*(parseInt(_0x3eee7a(0x171))/0x4)+-parseInt(_0x3eee7a(0x173))/0x5+-parseInt(_0x3eee7a(0x16c))/0x6*(-parseInt(_0x3eee7a(0x169))/0x7)+parseInt(_0x3eee7a(0x164))/0x8*(-parseInt(_0x3eee7a(0x165))/0x9)+-parseInt(_0x3eee7a(0x16f))/0xa+-parseInt(_0x3eee7a(0x163))/0xb*(-parseInt(_0x3eee7a(0x167))/0xc);if(_0x1ea0d6===_0x30e2e5)break;else _0x596ac0['push'](_0x596ac0['shift']());}catch(_0x5e67e1){_0x596ac0['push'](_0x596ac0['shift']());}}}(a180_0x9761,0xbd0a1));function a180_0x9761(){const _0x15b9ac=['4358mSiptZ','48jouyYD','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','5842123xvwdlC','add','workspace','6tvTbys','467lAxIuv','273381hQAlxc','10512570fXutIM','workspace\x20add','24cyqvfl','write','3232885ACykQl','App\x20profile\x20name','9206351toURCA','166696cyKvIl','63YvkCIp'];a180_0x9761=function(){return _0x15b9ac;};return a180_0x9761();}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a180_0x25bd(_0x1ff8e9,_0x34d7a3){_0x1ff8e9=_0x1ff8e9-0x163;const _0x976134=a180_0x9761();let _0x25bd20=_0x976134[_0x1ff8e9];return _0x25bd20;}export const workspaceAddDefinition={'service':a180_0x1c5476(0x16b),'command':a180_0x1c5476(0x16a),'description':a180_0x1c5476(0x168),'risk':a180_0x1c5476(0x172),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a180_0x1c5476(0x174),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x509d94=>validateAppName(_0x509d94,'workspace\x20add'),'execute':_0x5a4e7a=>runAppAdd(_0x5a4e7a,a180_0x1c5476(0x170))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a181_0x49c081=a181_0x1dab;(function(_0x39b546,_0x4ffdf1){const _0x592cc4=a181_0x1dab,_0x45a0a1=_0x39b546();while(!![]){try{const _0x57a61d=-parseInt(_0x592cc4(0x1d9))/0x1*(parseInt(_0x592cc4(0x1f5))/0x2)+parseInt(_0x592cc4(0x1e0))/0x3+-parseInt(_0x592cc4(0x1ee))/0x4*(-parseInt(_0x592cc4(0x1e7))/0x5)+-parseInt(_0x592cc4(0x1db))/0x6*(parseInt(_0x592cc4(0x1fd))/0x7)+-parseInt(_0x592cc4(0x20c))/0x8+parseInt(_0x592cc4(0x1ea))/0x9*(-parseInt(_0x592cc4(0x1fb))/0xa)+-parseInt(_0x592cc4(0x202))/0xb*(-parseInt(_0x592cc4(0x204))/0xc);if(_0x57a61d===_0x4ffdf1)break;else _0x45a0a1['push'](_0x45a0a1['shift']());}catch(_0x12dbcf){_0x45a0a1['push'](_0x45a0a1['shift']());}}}(a181_0x3736,0x25d8c));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';function a181_0x3736(){const _0x5074b2=['\x20--app\x20','keys','workspace','format','Missing\x20workspace\x20app\x20selector.','4WhGFbg','app','length','Workspace\x20','number','workspace.','370XEiHty','Locale\x20for\x20this\x20workspace\x20app\x20profile','56567VIXViS','init','write','initialized','pageSize','88OkmkHv','updated','930072xIhADi','\x20workspace\x20','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','locale','\x20workspace\x20use\x20--app\x20<name>`.','App\x20\x22','riskLevel','appcode','1589920KdBaMe','string','\x20(appcode:\x20','validation','project','129123dyMhiR','Use\x20`','72NwQNTm','globalConfig','flag','trim','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','162357fYYjZe','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','apiDir','env','str','\x22\x20not\x20found.','2725YUbvkT','\x20--appcode\x20<code>`.','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','2403RMWIqI','defaultFormat','use','apps','328kbbnJl','.\x20Credentials:\x20not\x20written.'];a181_0x3736=function(){return _0x5074b2;};return a181_0x3736();}const WORKSPACE_USAGE=CLI_BIN_NAME+a181_0x49c081(0x1e1),SAFE_PROFILE_KEYS=['appcode','env',a181_0x49c081(0x1e3),a181_0x49c081(0x1f3),a181_0x49c081(0x201),'riskLevel',a181_0x49c081(0x207)],workspaceFlags=[{'name':a181_0x49c081(0x1f6),'type':a181_0x49c081(0x20d),'description':a181_0x49c081(0x1e9)},{'name':'appcode','type':a181_0x49c081(0x20d),'description':a181_0x49c081(0x206)},{'name':a181_0x49c081(0x1e4),'type':a181_0x49c081(0x20d),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':a181_0x49c081(0x20d),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a181_0x49c081(0x1eb),'type':a181_0x49c081(0x20d),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a181_0x49c081(0x201),'type':a181_0x49c081(0x1f9),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':a181_0x49c081(0x20d),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':a181_0x49c081(0x1fc)}];function isRecord(_0x5e6d1d){return!!_0x5e6d1d&&typeof _0x5e6d1d==='object'&&!Array['isArray'](_0x5e6d1d);}function assertValidAppcode(_0x4edd4c){const _0x4dcdd4=a181_0x49c081,{valid:_0x45d421,message:_0x9a27ef}=validateAppcode(_0x4edd4c);if(!_0x45d421)throw CliErrors[_0x4dcdd4(0x1d7)]('Invalid\x20appcode:\x20'+_0x4edd4c,_0x9a27ef);}function sanitizeProfile(_0x5db1c5){if(!isRecord(_0x5db1c5))return{};const _0x1d3fe4={};for(const _0x41a08e of SAFE_PROFILE_KEYS){if(_0x5db1c5[_0x41a08e]!==undefined)_0x1d3fe4[_0x41a08e]=_0x5db1c5[_0x41a08e];}return _0x1d3fe4;}function cloneProfile(_0x823b53){return isRecord(_0x823b53)?{..._0x823b53}:{};}function a181_0x1dab(_0x1057dc,_0x4a49da){_0x1057dc=_0x1057dc-0x1d6;const _0x3736ab=a181_0x3736();let _0x1dab48=_0x3736ab[_0x1057dc];return _0x1dab48;}function collectWorkspaceProfileOverrides(_0x562dae){const _0x561fa4=a181_0x49c081,_0x22a90f={},_0x3a555f=_0x562dae[_0x561fa4(0x1e5)](_0x561fa4(0x1e4)),_0x31c917=_0x562dae[_0x561fa4(0x1e5)](_0x561fa4(0x1e3)),_0x3d73d2=_0x562dae['str'](_0x561fa4(0x1eb)),_0x17e213=_0x562dae[_0x561fa4(0x1dd)](_0x561fa4(0x201)),_0x5b7a31=_0x562dae[_0x561fa4(0x1e5)](_0x561fa4(0x20a)),_0x5f3f2c=_0x562dae[_0x561fa4(0x1e5)](_0x561fa4(0x207));if(_0x3a555f)_0x22a90f[_0x561fa4(0x1e4)]=_0x3a555f;if(_0x31c917)_0x22a90f[_0x561fa4(0x1e3)]=_0x31c917;if(_0x3d73d2)_0x22a90f[_0x561fa4(0x1f3)]=_0x3d73d2;if(_0x17e213!==undefined&&_0x17e213!=='')_0x22a90f[_0x561fa4(0x201)]=Number(_0x17e213);if(_0x5b7a31)_0x22a90f['riskLevel']=_0x5b7a31;if(_0x5f3f2c)_0x22a90f[_0x561fa4(0x207)]=_0x5f3f2c;return _0x22a90f;}async function validateWorkspaceArgs(_0xb2aa07){const _0x4d7a21=a181_0x49c081,_0x19e296=_0xb2aa07[_0x4d7a21(0x1e5)]('app')[_0x4d7a21(0x1de)](),_0x486099=_0xb2aa07[_0x4d7a21(0x1e5)]('appcode')['trim']();if(!_0x19e296&&!_0x486099)throw CliErrors[_0x4d7a21(0x1d7)](_0x4d7a21(0x1f4),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x4d7a21(0x208));if(_0x486099)assertValidAppcode(_0x486099);}function resolveKnownApps(){const _0x272153=a181_0x49c081,{config:_0x2066f2,layers:_0x33b413}=readRawConfigWithLayers(),_0x66daff=isRecord(_0x2066f2['apps'])?_0x2066f2[_0x272153(0x1ed)]:{},_0x378e1f=isRecord(_0x33b413['globalConfig'][_0x272153(0x1ed)])?_0x33b413[_0x272153(0x1dc)][_0x272153(0x1ed)]:{};return{..._0x378e1f,..._0x66daff};}async function configureWorkspace(_0x5a2395,_0x345aa8){const _0x5a3e56=a181_0x49c081,_0xb98535=_0x5a2395[_0x5a3e56(0x1e5)](_0x5a3e56(0x1f6))[_0x5a3e56(0x1de)](),_0xcad01d=_0x5a2395[_0x5a3e56(0x1e5)](_0x5a3e56(0x20b))['trim'](),_0x52cf5e=_0xb98535||_0xcad01d;if(!_0x52cf5e)throw CliErrors[_0x5a3e56(0x1d7)](_0x5a3e56(0x1f4),_0x5a3e56(0x1da)+CLI_BIN_NAME+_0x5a3e56(0x1df)+CLI_BIN_NAME+_0x5a3e56(0x208));if(_0xcad01d)assertValidAppcode(_0xcad01d);const _0x3b8fd4=resolveWriteConfigPath(_0x5a3e56(0x1d8)),_0x68c1d2=readConfigFile(_0x3b8fd4),_0x1de465=resolveKnownApps(),_0x3c573f=isRecord(_0x68c1d2[_0x5a3e56(0x1ed)])?{..._0x68c1d2[_0x5a3e56(0x1ed)]}:{},_0x450208=cloneProfile(_0x3c573f[_0x52cf5e]),_0x14176e=sanitizeProfile(_0x1de465[_0x52cf5e]),_0xdea612=_0xcad01d?{}:_0x14176e,_0x520ac0=_0xcad01d||_0xdea612[_0x5a3e56(0x20b)];if(!_0x520ac0){const _0x2a249d=Object[_0x5a3e56(0x1f1)](_0x1de465),_0x1fea7f=_0x2a249d[_0x5a3e56(0x1f7)]===0x0?_0x5a3e56(0x1da)+CLI_BIN_NAME+_0x5a3e56(0x205)+_0x345aa8+_0x5a3e56(0x1f0)+_0x52cf5e+_0x5a3e56(0x1e8):_0x5a3e56(0x1e2)+_0x2a249d['join'](',\x20');throw CliErrors[_0x5a3e56(0x1d7)](_0x5a3e56(0x209)+_0x52cf5e+_0x5a3e56(0x1e6),_0x1fea7f);}assertValidAppcode(String(_0x520ac0));const _0x1f1a7d={..._0xdea612,..._0x450208,'appcode':String(_0x520ac0),...collectWorkspaceProfileOverrides(_0x5a2395)};return _0x3c573f[_0x52cf5e]=_0x1f1a7d,_0x68c1d2[_0x5a3e56(0x1ed)]=_0x3c573f,_0x68c1d2['defaultApp']=_0x52cf5e,delete _0x68c1d2[_0x5a3e56(0x20b)],delete _0x68c1d2['app'],_0x1f1a7d[_0x5a3e56(0x1e4)]&&(_0x68c1d2[_0x5a3e56(0x1e4)]=_0x1f1a7d['env']),writeConfigFile(_0x3b8fd4,_0x68c1d2),{'ok':!![],'message':_0x5a3e56(0x1f8)+(_0x345aa8===_0x5a3e56(0x1fe)?_0x5a3e56(0x200):_0x5a3e56(0x203))+':\x20'+_0x52cf5e+_0x5a3e56(0x1d6)+_0x1f1a7d['appcode']+').\x20Config:\x20'+_0x3b8fd4+_0x5a3e56(0x1ef),'data':{'operation':_0x5a3e56(0x1fa)+_0x345aa8,'configPath':_0x3b8fd4,'app':_0x52cf5e,'appcode':_0x1f1a7d['appcode'],'env':_0x1f1a7d['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':a181_0x49c081(0x1ff),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5a2a0e=>configureWorkspace(_0x5a2a0e,'init')},workspaceUseDefinition={'service':a181_0x49c081(0x1f2),'command':a181_0x49c081(0x1ec),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a181_0x49c081(0x1ff),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3c2786=>configureWorkspace(_0x3c2786,a181_0x49c081(0x1ec))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a182_0xa8f236=a182_0x7734;function a182_0x7734(_0x2f2eff,_0x516e8a){_0x2f2eff=_0x2f2eff-0x11c;const _0x3dfc42=a182_0x3dfc();let _0x77344d=_0x3dfc42[_0x2f2eff];return _0x77344d;}(function(_0x49c86b,_0x55153a){const _0x202678=a182_0x7734,_0x573ce6=_0x49c86b();while(!![]){try{const _0x291763=-parseInt(_0x202678(0x127))/0x1+parseInt(_0x202678(0x125))/0x2*(-parseInt(_0x202678(0x11f))/0x3)+parseInt(_0x202678(0x122))/0x4*(-parseInt(_0x202678(0x123))/0x5)+-parseInt(_0x202678(0x12b))/0x6*(parseInt(_0x202678(0x124))/0x7)+-parseInt(_0x202678(0x121))/0x8*(parseInt(_0x202678(0x120))/0x9)+parseInt(_0x202678(0x12a))/0xa*(-parseInt(_0x202678(0x11e))/0xb)+parseInt(_0x202678(0x126))/0xc;if(_0x291763===_0x55153a)break;else _0x573ce6['push'](_0x573ce6['shift']());}catch(_0x1c6146){_0x573ce6['push'](_0x573ce6['shift']());}}}(a182_0x3dfc,0x280f8));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a182_0x3dfc(){const _0x57b5e3=['name','App\x20profile\x20name\x20to\x20remove','high-risk-write','4763ZLNSeB','6PEIlEY','40113dirmJa','368eAuvXh','972FSDazl','6700kSnanZ','7sfLZSa','19562fcaWKw','14470296WIivFi','4540JCymad','remove','workspace\x20remove','6590zWqWLs','1210074yCjWEh'];a182_0x3dfc=function(){return _0x57b5e3;};return a182_0x3dfc();}export const workspaceRemoveDefinition={'service':'workspace','command':a182_0xa8f236(0x128),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a182_0xa8f236(0x11d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a182_0xa8f236(0x12c),'description':a182_0xa8f236(0x11c),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x289c07=>validateAppName(_0x289c07,a182_0xa8f236(0x129)),'execute':_0xa456af=>runAppRemove(_0xa456af,a182_0xa8f236(0x129))};
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a183_0x59b812=a183_0x5efe;(function(_0x3fc460,_0x5b5efe){const _0x337dac=a183_0x5efe,_0x3f61a8=_0x3fc460();while(!![]){try{const _0xd5a3a7=parseInt(_0x337dac(0x71))/0x1*(-parseInt(_0x337dac(0x78))/0x2)+parseInt(_0x337dac(0x7c))/0x3*(parseInt(_0x337dac(0x68))/0x4)+-parseInt(_0x337dac(0x6a))/0x5+-parseInt(_0x337dac(0x66))/0x6+-parseInt(_0x337dac(0x88))/0x7+parseInt(_0x337dac(0x74))/0x8*(parseInt(_0x337dac(0x87))/0x9)+-parseInt(_0x337dac(0x7d))/0xa*(-parseInt(_0x337dac(0x7b))/0xb);if(_0xd5a3a7===_0x5b5efe)break;else _0x3f61a8['push'](_0x3f61a8['shift']());}catch(_0xb3c099){_0x3f61a8['push'](_0x3f61a8['shift']());}}}(a183_0x4664,0x29192));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=[a183_0x59b812(0x7a),a183_0x59b812(0x6d),a183_0x59b812(0x70),'format',a183_0x59b812(0x6b)];function a183_0x5efe(_0x101ea6,_0x32abcc){_0x101ea6=_0x101ea6-0x66;const _0x4664a3=a183_0x4664();let _0x5efe50=_0x4664a3[_0x101ea6];return _0x5efe50;}export const TOP_LEVEL_CONFIG_KEYS=new Set([a183_0x59b812(0x8b),a183_0x59b812(0x75),'locale',a183_0x59b812(0x82),'cookie','accessKey',a183_0x59b812(0x8d)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};function a183_0x4664(){const _0x12c3b0=['appcode','apps','apiDir','join','436080swFnRP','number','167224vMnPnH','Config\x20key\x20(','835680zHKEit','riskLevel','API\x20directory\x20path','accessKey','defaultFormat','length','locale','11NDXdqL','Auth\x20cookie','trim','623608zhOFny','env','keys','inherit','29406LECZOy','pageSize','cookie','146366VVBKlA','24pSVikk','130qFeZDe','defaultApp','string','Default\x20page\x20size','entries','format','en-US','zh-CN','Locale','app','36hFhdpY','1745401FzWFEX','has','Risk\x20level'];a183_0x4664=function(){return _0x12c3b0;};return a183_0x4664();}export function formatConfigKeyList(_0x2101a0){const _0xea1ac3=a183_0x59b812;return[..._0x2101a0][_0xea1ac3(0x8e)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x1474df){const _0x78277f=a183_0x59b812;return TOP_LEVEL_CONFIG_KEYS[_0x78277f(0x89)](_0x1474df);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x445f77=a183_0x59b812;return _0x445f77(0x69)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a183_0x59b812(0x75),'apiDir':a183_0x59b812(0x8d),'cookie':'cookie','accessKey':a183_0x59b812(0x6d),'defaultFormat':a183_0x59b812(0x82),'pageSize':'pageSize','riskLevel':a183_0x59b812(0x6b),'locale':a183_0x59b812(0x70)};export function getAppProfileFlagDefs(){const _0x1c90aa=a183_0x59b812;return[{'name':_0x1c90aa(0x75),'type':_0x1c90aa(0x7f),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x1c90aa(0x7f),'description':_0x1c90aa(0x6c)},{'name':'cookie','type':'string','description':_0x1c90aa(0x72),'hidden':!![]},{'name':_0x1c90aa(0x6d),'type':_0x1c90aa(0x7f),'description':'Access\x20key','hidden':!![]},{'name':_0x1c90aa(0x6e),'type':_0x1c90aa(0x7f),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x1c90aa(0x67),'description':_0x1c90aa(0x80)},{'name':_0x1c90aa(0x6b),'type':_0x1c90aa(0x7f),'description':_0x1c90aa(0x8a),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x1c90aa(0x70),'type':_0x1c90aa(0x7f),'description':_0x1c90aa(0x85)}];}export function collectAppProfileOverrides(_0x252cc9){const _0xf7c9a9=a183_0x59b812,_0x111ef3={};for(const [_0x1d2bf7,_0x3b938c]of Object[_0xf7c9a9(0x81)](APP_PROFILE_FLAG_KEY_MAP)){const _0x2c438d=_0x252cc9(_0x1d2bf7);if(!_0x2c438d)continue;_0x111ef3[_0x3b938c]=_0x3b938c===_0xf7c9a9(0x79)?Number(_0x2c438d):_0x2c438d;}return _0x111ef3;}export function buildAppProfileListFields(_0x331272){const _0x4e0fa3=a183_0x59b812;return{'env':_0x331272[_0x4e0fa3(0x75)]??null,'apiDir':_0x331272[_0x4e0fa3(0x8d)]??null,'hasCookie':!!_0x331272['cookie'],'hasAccessKey':!!_0x331272[_0x4e0fa3(0x6d)],'format':_0x331272['format']??null,'pageSize':_0x331272[_0x4e0fa3(0x79)]??null,'riskLevel':_0x331272[_0x4e0fa3(0x6b)]??null,'locale':_0x331272['locale']??null};}export function buildAppDoctorFields(_0xb53168,_0x5e303c){const _0xcc8354=a183_0x59b812;return{'env':{'value':_0xb53168['env']||_0x5e303c['env'],'source':_0xb53168['env']?_0xcc8354(0x86):'inherit'},'apiDir':{'value':_0xb53168[_0xcc8354(0x8d)]||_0x5e303c[_0xcc8354(0x8d)],'source':_0xb53168['apiDir']?_0xcc8354(0x86):_0xcc8354(0x77)},'cookie':{'value':_0xb53168[_0xcc8354(0x7a)]||_0x5e303c['cookie'],'source':_0xb53168['cookie']?_0xcc8354(0x86):_0xcc8354(0x77)},'accessKey':{'value':_0xb53168[_0xcc8354(0x6d)]||_0x5e303c[_0xcc8354(0x6d)],'source':_0xb53168[_0xcc8354(0x6d)]?'app':'inherit'}};}export function buildCanonicalAppConfig(_0x5c1b6c,_0x1ca9c3){const _0x2fdcef=a183_0x59b812,_0x1b94de=_0x5c1b6c['map'](_0xa4dd0b=>String(_0xa4dd0b||'')[_0x2fdcef(0x73)]())['filter'](Boolean);if(_0x1b94de[_0x2fdcef(0x6f)]===0x0)return{};const _0x53df2c={};for(const _0xdf8b70 of _0x1b94de){_0x53df2c[_0xdf8b70]=_0x1ca9c3?{'appcode':_0xdf8b70,'env':_0x1ca9c3}:{'appcode':_0xdf8b70};}return{'apps':_0x53df2c,'defaultApp':_0x1b94de[0x0]};}export function buildCanonicalProjectConfig(_0x1febaf,_0x4b12dc){const _0x52aeaf=a183_0x59b812,{appCodes:appCodes=[],env:_0x29c0d1,metadata:_0xdd0d31}=_0x4b12dc,_0x1b8b02={..._0x1febaf,..._0xdd0d31||{}};delete _0x1b8b02[_0x52aeaf(0x8b)],delete _0x1b8b02[_0x52aeaf(0x86)];if(_0x29c0d1)_0x1b8b02[_0x52aeaf(0x75)]=_0x29c0d1;else!_0x1b8b02['env']&&(_0x1b8b02['env']=DEFAULT_CONFIG_VALUES[_0x52aeaf(0x75)]);const _0x3feea6=buildCanonicalAppConfig(appCodes,_0x1b8b02[_0x52aeaf(0x75)]);return Object[_0x52aeaf(0x76)](_0x3feea6)[_0x52aeaf(0x6f)]>0x0&&(_0x1b8b02[_0x52aeaf(0x8c)]=_0x3feea6[_0x52aeaf(0x8c)],_0x1b8b02[_0x52aeaf(0x7e)]=_0x3feea6[_0x52aeaf(0x7e)]),_0x1b8b02;}const LOCALE_MAP={'zh':a183_0x59b812(0x84),'zh-cn':a183_0x59b812(0x84),'zh_cn':a183_0x59b812(0x84),'en':a183_0x59b812(0x83),'en-us':a183_0x59b812(0x83),'en_us':a183_0x59b812(0x83)};export function normalizeLocale(_0x193709){if(!_0x193709)return null;return LOCALE_MAP[_0x193709['toLowerCase']()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a184_0x9eca(){const _0x506bff=['96537uFBCft','2933073eAegSK','8XkSWaN','2898900tMZKrw','99szrszl','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','3CASISd','3887051SMkeqe','258RWCRqz','10WiWmdJ','65360jLgMDF','2131400NXiGRI','1334884vdXIJR'];a184_0x9eca=function(){return _0x506bff;};return a184_0x9eca();}function a184_0x549b(_0x14da45,_0x12631b){_0x14da45=_0x14da45-0x79;const _0x9ecaff=a184_0x9eca();let _0x549b90=_0x9ecaff[_0x14da45];return _0x549b90;}const a184_0x126a35=a184_0x549b;(function(_0x5983bb,_0x1be19e){const _0x5c90c3=a184_0x549b,_0x5e371e=_0x5983bb();while(!![]){try{const _0x1cf86c=-parseInt(_0x5c90c3(0x7f))/0x1+-parseInt(_0x5c90c3(0x7e))/0x2*(-parseInt(_0x5c90c3(0x85))/0x3)+parseInt(_0x5c90c3(0x7d))/0x4+parseInt(_0x5c90c3(0x7c))/0x5*(parseInt(_0x5c90c3(0x7a))/0x6)+-parseInt(_0x5c90c3(0x79))/0x7*(-parseInt(_0x5c90c3(0x81))/0x8)+-parseInt(_0x5c90c3(0x80))/0x9*(-parseInt(_0x5c90c3(0x7b))/0xa)+parseInt(_0x5c90c3(0x83))/0xb*(-parseInt(_0x5c90c3(0x82))/0xc);if(_0x1cf86c===_0x1be19e)break;else _0x5e371e['push'](_0x5e371e['shift']());}catch(_0x552577){_0x5e371e['push'](_0x5e371e['shift']());}}}(a184_0x9eca,0x5b082));export const CLI_VERSION_POLICY_URL=a184_0x126a35(0x84);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a184_0x310f(){const _0x86ffee=['production\x20|\x20daily','Rabetbase\x20CLI','Environment','Description','operation-type','246034SWbBKW','Page\x20number','nonInteractive','Description\x20file','Output\x20format','page','Force\x20non-interactive\x20mode\x20(CI)','expectParentId','3532030xjTQqf','dbId','non-interactive','SQL\x20string','expect-path','6728760leBtEN','menu-ids','enableBffSave','Show\x20help','SQL\x20code','Dataset\x20code','label','value','sql','appcode','params','stdin','Output\x20path','44MDDmfK','boolean','Comma-separated\x20menu\x20IDs','sqlName','description','fromEnv','map','DB\x20ID','sql-name','File\x20path','code','file','21cLELQw','description-file','json\x20|\x20pretty\x20|\x20compress','meowKey','Expected\x20current\x20child\x20count','7KdwgBZ','8wctSEp','expect-parent-id','Target\x20path','sort','operation','Watch\x20mode','global','watch','Select\x20app\x20profile\x20by\x20name','title','confirm','Operation\x20type','Apply\x20to\x20all','Use\x20remote','clear','app','Expected\x20current\x20parent\x20menu\x20id','rabetbase','parent-id','all','Page\x20size','force','db-id','Config\x20key','Schemas','env','tags','project','parentId','name','remote','expected-count','operationType','Expected\x20affected\x20count','Use\x20global\x20config\x20scope','65077aUSUae','schemas','enable-bff-save','pagesize','Clear','expectedChildrenCount','<name>','output','expected-children-count','<code>','dbid','functionNode','reveal','datasetcode','string','format','4261524FPaLeX','Use\x20project\x20config\x20scope','yes','SQL\x20name','Keyword\x20filter','Menu\x20sort\x20value','Override\x20appcode','keyword','2170130LWbDZs','sqlname','function-node','Config\x20value','1106516xsMnMk','dryRun','@lovrabet/rabetbase-cli','Menu\x20label','Parent\x20menu\x20id','Skip\x20import\x20generation','fromEntries','Title','JSON\x20params','Code\x20filter','Asynchronous\x20task\x20ID','target','sqlcode','dry-run','Function\x20node','type','Read\x20value\x20from\x20stdin','verbose','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Type\x20filter','Name','skipImports'];a184_0x310f=function(){return _0x86ffee;};return a184_0x310f();}const a184_0x7f76a0=a184_0x37a9;(function(_0x1b3e8e,_0x34b02a){const _0x712693=a184_0x37a9,_0x52549e=_0x1b3e8e();while(!![]){try{const _0x1d2d2c=-parseInt(_0x712693(0x270))/0x1+-parseInt(_0x712693(0x221))/0x2*(-parseInt(_0x712693(0x247))/0x3)+-parseInt(_0x712693(0x206))/0x4+parseInt(_0x712693(0x229))/0x5+parseInt(_0x712693(0x1fa))/0x6*(-parseInt(_0x712693(0x24c))/0x7)+-parseInt(_0x712693(0x24d))/0x8*(parseInt(_0x712693(0x22e))/0x9)+-parseInt(_0x712693(0x202))/0xa*(-parseInt(_0x712693(0x23b))/0xb);if(_0x1d2d2c===_0x34b02a)break;else _0x52549e['push'](_0x52549e['shift']());}catch(_0x37ac6f){_0x52549e['push'](_0x52549e['shift']());}}}(a184_0x310f,0x9b449));export const CLI_BIN_NAME=a184_0x7f76a0(0x25e);export const CLI_DISPLAY_NAME=a184_0x7f76a0(0x21d);export const NPM_PACKAGE_NAME=a184_0x7f76a0(0x208);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x200),'hint':a184_0x7f76a0(0x1f3)},{'name':a184_0x7f76a0(0x25c),'meowKey':'app','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x255),'hint':a184_0x7f76a0(0x1f0)},{'name':a184_0x7f76a0(0x266),'meowKey':a184_0x7f76a0(0x266),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x21e),'hint':a184_0x7f76a0(0x21c)},{'name':a184_0x7f76a0(0x1f9),'meowKey':a184_0x7f76a0(0x1f9),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x225),'hint':a184_0x7f76a0(0x249)},{'name':'jq','meowKey':'jq','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x218),'hint':'<expr>'},{'name':a184_0x7f76a0(0x213),'meowKey':a184_0x7f76a0(0x207),'type':a184_0x7f76a0(0x23c),'description':'Preview\x20operation\x20without\x20executing'},{'name':a184_0x7f76a0(0x1fc),'meowKey':'yes','type':a184_0x7f76a0(0x23c),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a184_0x7f76a0(0x22b),'meowKey':a184_0x7f76a0(0x223),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x227)},{'name':a184_0x7f76a0(0x253),'meowKey':a184_0x7f76a0(0x253),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x26f)},{'name':'project','meowKey':a184_0x7f76a0(0x268),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x1fb)},{'name':'ci','meowKey':'ci','type':a184_0x7f76a0(0x23c),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':'help','type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x231)},{'name':a184_0x7f76a0(0x26a),'meowKey':a184_0x7f76a0(0x26a),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x21a),'hidden':!![]},{'name':a184_0x7f76a0(0x256),'meowKey':a184_0x7f76a0(0x256),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x20d),'hidden':!![]},{'name':'clear','meowKey':a184_0x7f76a0(0x25b),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x1ee),'hidden':!![]},{'name':'watch','meowKey':a184_0x7f76a0(0x254),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x252),'hidden':!![]},{'name':'output','meowKey':a184_0x7f76a0(0x1f1),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x23a),'hidden':!![]},{'name':a184_0x7f76a0(0x238),'meowKey':a184_0x7f76a0(0x238),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x20e),'hidden':!![]},{'name':a184_0x7f76a0(0x1f7),'meowKey':'datasetcode','type':'string','description':a184_0x7f76a0(0x233),'hidden':!![]},{'name':a184_0x7f76a0(0x260),'meowKey':a184_0x7f76a0(0x260),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x259),'hidden':!![]},{'name':a184_0x7f76a0(0x272),'meowKey':a184_0x7f76a0(0x230),'type':a184_0x7f76a0(0x23c),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a184_0x7f76a0(0x215),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x219),'hidden':!![]},{'name':a184_0x7f76a0(0x246),'meowKey':a184_0x7f76a0(0x246),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x244),'hidden':!![]},{'name':'sqlcode','meowKey':a184_0x7f76a0(0x212),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x232),'hidden':!![]},{'name':a184_0x7f76a0(0x243),'meowKey':a184_0x7f76a0(0x23e),'type':a184_0x7f76a0(0x1f8),'description':'SQL\x20name','hidden':!![]},{'name':a184_0x7f76a0(0x203),'meowKey':a184_0x7f76a0(0x203),'type':'string','description':a184_0x7f76a0(0x1fd),'hidden':!![]},{'name':a184_0x7f76a0(0x263),'meowKey':a184_0x7f76a0(0x22a),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x242),'hidden':!![]},{'name':a184_0x7f76a0(0x1f4),'meowKey':a184_0x7f76a0(0x1f4),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x242),'hidden':!![]},{'name':a184_0x7f76a0(0x23f),'meowKey':a184_0x7f76a0(0x23f),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x21f),'hidden':!![]},{'name':a184_0x7f76a0(0x248),'meowKey':'descriptionFile','type':'string','description':a184_0x7f76a0(0x224),'hidden':!![]},{'name':a184_0x7f76a0(0x226),'meowKey':a184_0x7f76a0(0x226),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x222),'hidden':!![]},{'name':a184_0x7f76a0(0x1ed),'meowKey':a184_0x7f76a0(0x1ed),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x261),'hidden':!![]},{'name':a184_0x7f76a0(0x201),'meowKey':a184_0x7f76a0(0x201),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x1fe),'hidden':!![]},{'name':a184_0x7f76a0(0x245),'meowKey':'code','type':'string','description':a184_0x7f76a0(0x20f),'hidden':!![]},{'name':a184_0x7f76a0(0x236),'meowKey':a184_0x7f76a0(0x236),'type':'string','description':a184_0x7f76a0(0x22c),'hidden':!![]},{'name':'schemas','meowKey':a184_0x7f76a0(0x271),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x265),'hidden':!![]},{'name':a184_0x7f76a0(0x251),'meowKey':a184_0x7f76a0(0x251),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x258),'hidden':!![]},{'name':'target','meowKey':a184_0x7f76a0(0x211),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x24f),'hidden':!![]},{'name':'skip-imports','meowKey':a184_0x7f76a0(0x21b),'type':'boolean','description':a184_0x7f76a0(0x20b),'hidden':!![]},{'name':'key','meowKey':'key','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x264),'hidden':!![]},{'name':'value','meowKey':a184_0x7f76a0(0x235),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x205),'hidden':!![]},{'name':'tags','meowKey':a184_0x7f76a0(0x267),'type':'string','description':'Tags','hidden':!![]},{'name':a184_0x7f76a0(0x239),'meowKey':a184_0x7f76a0(0x239),'type':'boolean','description':a184_0x7f76a0(0x216),'hidden':!![]},{'name':'from-env','meowKey':a184_0x7f76a0(0x240),'type':a184_0x7f76a0(0x1f8),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':'reveal','meowKey':a184_0x7f76a0(0x1f6),'type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a184_0x7f76a0(0x262),'meowKey':a184_0x7f76a0(0x262),'type':a184_0x7f76a0(0x23c),'description':'Force\x20overwrite','hidden':!![]},{'name':a184_0x7f76a0(0x257),'meowKey':a184_0x7f76a0(0x257),'type':a184_0x7f76a0(0x23c),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a184_0x7f76a0(0x26b),'meowKey':a184_0x7f76a0(0x26b),'type':'boolean','description':a184_0x7f76a0(0x25a),'hidden':!![]},{'name':a184_0x7f76a0(0x217),'meowKey':'verbose','type':'boolean','description':'Verbose\x20output','hidden':!![]},{'name':a184_0x7f76a0(0x26c),'meowKey':'expectedCount','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x26e),'hidden':!![]},{'name':a184_0x7f76a0(0x234),'meowKey':'label','type':'string','description':a184_0x7f76a0(0x209),'hidden':!![]},{'name':a184_0x7f76a0(0x25f),'meowKey':a184_0x7f76a0(0x269),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x20a),'hidden':!![]},{'name':a184_0x7f76a0(0x250),'meowKey':a184_0x7f76a0(0x250),'type':'string','description':a184_0x7f76a0(0x1ff),'hidden':!![]},{'name':a184_0x7f76a0(0x24e),'meowKey':a184_0x7f76a0(0x228),'type':'string','description':a184_0x7f76a0(0x25d),'hidden':!![]},{'name':a184_0x7f76a0(0x22d),'meowKey':'expectPath','type':a184_0x7f76a0(0x1f8),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a184_0x7f76a0(0x1f2),'meowKey':a184_0x7f76a0(0x1ef),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x24b),'hidden':!![]},{'name':a184_0x7f76a0(0x22f),'meowKey':'menuIds','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x23d),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':'string','description':a184_0x7f76a0(0x210),'hidden':!![]},{'name':a184_0x7f76a0(0x220),'meowKey':a184_0x7f76a0(0x26d),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x258),'hidden':!![]},{'name':a184_0x7f76a0(0x204),'meowKey':a184_0x7f76a0(0x1f5),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x214),'hidden':!![]}];function a184_0x37a9(_0x3da8e0,_0x42b2b5){_0x3da8e0=_0x3da8e0-0x1ed;const _0x310fa9=a184_0x310f();let _0x37a99c=_0x310fa9[_0x3da8e0];return _0x37a99c;}export const PIPELINE_FLAG_NAMES=new Set([a184_0x7f76a0(0x237),'app','env',a184_0x7f76a0(0x1f9),'jq','dry-run','yes',a184_0x7f76a0(0x22b),'ci']);export function buildMeowFlags(){const _0xfaca91=a184_0x7f76a0;return Object[_0xfaca91(0x20c)](GLOBAL_FLAGS[_0xfaca91(0x241)](_0xf47640=>[_0xf47640[_0xfaca91(0x24a)],{'type':_0xf47640[_0xfaca91(0x215)]}]));}
|
|
1
|
+
const a185_0x207a77=a185_0x65eb;(function(_0x7200ed,_0x31723d){const _0x312382=a185_0x65eb,_0x3f6742=_0x7200ed();while(!![]){try{const _0x4b84ca=-parseInt(_0x312382(0x18f))/0x1*(-parseInt(_0x312382(0x1b9))/0x2)+parseInt(_0x312382(0x16f))/0x3*(parseInt(_0x312382(0x171))/0x4)+-parseInt(_0x312382(0x17a))/0x5+-parseInt(_0x312382(0x1bc))/0x6*(parseInt(_0x312382(0x17f))/0x7)+-parseInt(_0x312382(0x1ce))/0x8*(parseInt(_0x312382(0x18e))/0x9)+-parseInt(_0x312382(0x1d8))/0xa+parseInt(_0x312382(0x1d9))/0xb*(parseInt(_0x312382(0x192))/0xc);if(_0x4b84ca===_0x31723d)break;else _0x3f6742['push'](_0x3f6742['shift']());}catch(_0x3c3817){_0x3f6742['push'](_0x3f6742['shift']());}}}(a185_0x2ad0,0x926f5));export const CLI_BIN_NAME='rabetbase';function a185_0x65eb(_0x4fc959,_0x4a69bc){_0x4fc959=_0x4fc959-0x15d;const _0x2ad004=a185_0x2ad0();let _0x65eb13=_0x2ad004[_0x4fc959];return _0x65eb13;}export const CLI_DISPLAY_NAME=a185_0x207a77(0x1b2);export const NPM_PACKAGE_NAME=a185_0x207a77(0x16e);function a185_0x2ad0(){const _0x226791=['Clear','Description','sql-name','enableBffSave','map','2221430blzAXc','Show\x20help','appcode','format','Expected\x20current\x20menu\x20path','854tQqrpZ','Name','function-node','SQL\x20string','target','Page\x20number','clear','Operation\x20type','Function\x20node','skipImports','dbid','Verbose\x20output','keyword','Asynchronous\x20task\x20ID','watch','278991GvhIXn','669616BycSoQ','Config\x20value','nonInteractive','12jIPTHA','Skip\x20confirmation\x20for\x20high-risk\x20writes','global','Override\x20appcode','Use\x20project\x20config\x20scope','all','schemas','page','expectedCount','Reveal\x20sensitive\x20value','project','code','expected-count','Comma-separated\x20menu\x20IDs','dryRun','dry-run','Expected\x20affected\x20count','enable-bff-save','name','Expected\x20current\x20child\x20count','Watch\x20mode','env','Schemas','DB\x20ID','Output\x20format','Code\x20filter','confirm','Alias\x20for\x20--non-interactive','Parent\x20menu\x20id','sqlName','stdin','sqlcode','Rabetbase\x20CLI','Read\x20value\x20from\x20stdin','task-id','from-env','description-file','Dataset\x20code','verbose','2CGaCSj','Keyword\x20filter','operationType','30372emHZsT','Force\x20overwrite','datasetcode','sql','Description\x20file','Use\x20global\x20config\x20scope','description','Environment','non-interactive','expectedChildrenCount','Apply\x20to\x20all','<name>','<code>','meowKey','SQL\x20name','production\x20|\x20daily','tags','Read\x20value\x20from\x20environment\x20variable','64pBOrjH','help','Select\x20app\x20profile\x20by\x20name','descriptionFile','expect-parent-id','Menu\x20sort\x20value','Page\x20size','force','File\x20path','expectParentId','4981780DPnUPC','18463918yiZEqD','string','Config\x20key','title','dbId','taskId','app','value','parent-id','operation','menu-ids','key','output','params','<expr>','json\x20|\x20pretty\x20|\x20compress','expected-children-count','yes','sqlname','label','SQL\x20code','functionNode','boolean','remote','type','skip-imports','@lovrabet/rabetbase-cli','3QBKONN','sort','238652yjcclo','Type\x20filter','Skip\x20import\x20generation','reveal'];a185_0x2ad0=function(){return _0x226791;};return a185_0x2ad0();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x195),'hint':a185_0x207a77(0x1c8)},{'name':a185_0x207a77(0x1df),'meowKey':a185_0x207a77(0x1df),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1d0),'hint':a185_0x207a77(0x1c7)},{'name':a185_0x207a77(0x1a7),'meowKey':a185_0x207a77(0x1a7),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1c3),'hint':a185_0x207a77(0x1cb)},{'name':a185_0x207a77(0x17d),'meowKey':a185_0x207a77(0x17d),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1aa),'hint':a185_0x207a77(0x163)},{'name':'jq','meowKey':'jq','type':a185_0x207a77(0x1da),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a185_0x207a77(0x162)},{'name':'dry-run','meowKey':a185_0x207a77(0x1a0),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':'yes','type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x193)},{'name':a185_0x207a77(0x1c4),'meowKey':a185_0x207a77(0x191),'type':a185_0x207a77(0x16a),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a185_0x207a77(0x194),'meowKey':a185_0x207a77(0x194),'type':'boolean','description':a185_0x207a77(0x1c1)},{'name':'project','meowKey':a185_0x207a77(0x19c),'type':'boolean','description':a185_0x207a77(0x196)},{'name':'ci','meowKey':'ci','type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x1ad),'hidden':!![]},{'name':a185_0x207a77(0x1cf),'meowKey':'help','type':'boolean','description':a185_0x207a77(0x17b)},{'name':a185_0x207a77(0x1a4),'meowKey':'name','type':'string','description':a185_0x207a77(0x180),'hidden':!![]},{'name':'title','meowKey':a185_0x207a77(0x1dc),'type':'string','description':'Title','hidden':!![]},{'name':a185_0x207a77(0x185),'meowKey':'clear','type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x175),'hidden':!![]},{'name':a185_0x207a77(0x18d),'meowKey':a185_0x207a77(0x18d),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x1a6),'hidden':!![]},{'name':'output','meowKey':a185_0x207a77(0x160),'type':a185_0x207a77(0x1da),'description':'Output\x20path','hidden':!![]},{'name':a185_0x207a77(0x161),'meowKey':'params','type':'string','description':'JSON\x20params','hidden':!![]},{'name':a185_0x207a77(0x1be),'meowKey':a185_0x207a77(0x1be),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1b7),'hidden':!![]},{'name':a185_0x207a77(0x197),'meowKey':a185_0x207a77(0x197),'type':'boolean','description':a185_0x207a77(0x1c6),'hidden':!![]},{'name':a185_0x207a77(0x1a3),'meowKey':a185_0x207a77(0x178),'type':a185_0x207a77(0x16a),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a185_0x207a77(0x16c),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x172),'hidden':!![]},{'name':'file','meowKey':'file','type':'string','description':a185_0x207a77(0x1d6),'hidden':!![]},{'name':a185_0x207a77(0x1b1),'meowKey':a185_0x207a77(0x1b1),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x168),'hidden':!![]},{'name':a185_0x207a77(0x177),'meowKey':a185_0x207a77(0x1af),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ca),'hidden':!![]},{'name':'sqlname','meowKey':a185_0x207a77(0x166),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ca),'hidden':!![]},{'name':'db-id','meowKey':a185_0x207a77(0x1dd),'type':'string','description':a185_0x207a77(0x1a9),'hidden':!![]},{'name':a185_0x207a77(0x189),'meowKey':a185_0x207a77(0x189),'type':a185_0x207a77(0x1da),'description':'DB\x20ID','hidden':!![]},{'name':a185_0x207a77(0x1c2),'meowKey':a185_0x207a77(0x1c2),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x176),'hidden':!![]},{'name':a185_0x207a77(0x1b6),'meowKey':a185_0x207a77(0x1d1),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1c0),'hidden':!![]},{'name':a185_0x207a77(0x199),'meowKey':a185_0x207a77(0x199),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x184),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1d4),'hidden':!![]},{'name':a185_0x207a77(0x18b),'meowKey':'keyword','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ba),'hidden':!![]},{'name':a185_0x207a77(0x19d),'meowKey':a185_0x207a77(0x19d),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ab),'hidden':!![]},{'name':a185_0x207a77(0x1bf),'meowKey':a185_0x207a77(0x1bf),'type':'string','description':a185_0x207a77(0x182),'hidden':!![]},{'name':'schemas','meowKey':a185_0x207a77(0x198),'type':'string','description':a185_0x207a77(0x1a8),'hidden':!![]},{'name':a185_0x207a77(0x15d),'meowKey':a185_0x207a77(0x15d),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x186),'hidden':!![]},{'name':a185_0x207a77(0x183),'meowKey':a185_0x207a77(0x183),'type':a185_0x207a77(0x1da),'description':'Target\x20path','hidden':!![]},{'name':a185_0x207a77(0x16d),'meowKey':a185_0x207a77(0x188),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x173),'hidden':!![]},{'name':a185_0x207a77(0x15f),'meowKey':'key','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1db),'hidden':!![]},{'name':'value','meowKey':a185_0x207a77(0x1e0),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x190),'hidden':!![]},{'name':a185_0x207a77(0x1cc),'meowKey':a185_0x207a77(0x1cc),'type':a185_0x207a77(0x1da),'description':'Tags','hidden':!![]},{'name':a185_0x207a77(0x1b0),'meowKey':a185_0x207a77(0x1b0),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x1b3),'hidden':!![]},{'name':a185_0x207a77(0x1b5),'meowKey':'fromEnv','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1cd),'hidden':!![]},{'name':a185_0x207a77(0x174),'meowKey':a185_0x207a77(0x174),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x19b),'hidden':!![]},{'name':a185_0x207a77(0x1d5),'meowKey':a185_0x207a77(0x1d5),'type':'boolean','description':a185_0x207a77(0x1bd),'hidden':!![]},{'name':a185_0x207a77(0x1ac),'meowKey':'confirm','type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a185_0x207a77(0x16b),'meowKey':'remote','type':'boolean','description':'Use\x20remote','hidden':!![]},{'name':a185_0x207a77(0x1b8),'meowKey':a185_0x207a77(0x1b8),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x18a),'hidden':!![]},{'name':a185_0x207a77(0x19e),'meowKey':a185_0x207a77(0x19a),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1a2),'hidden':!![]},{'name':a185_0x207a77(0x167),'meowKey':a185_0x207a77(0x167),'type':a185_0x207a77(0x1da),'description':'Menu\x20label','hidden':!![]},{'name':a185_0x207a77(0x1e1),'meowKey':'parentId','type':'string','description':a185_0x207a77(0x1ae),'hidden':!![]},{'name':a185_0x207a77(0x170),'meowKey':a185_0x207a77(0x170),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1d3),'hidden':!![]},{'name':a185_0x207a77(0x1d2),'meowKey':a185_0x207a77(0x1d7),'type':a185_0x207a77(0x1da),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x17e),'hidden':!![]},{'name':a185_0x207a77(0x164),'meowKey':a185_0x207a77(0x1c5),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1a5),'hidden':!![]},{'name':a185_0x207a77(0x15e),'meowKey':'menuIds','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x19f),'hidden':!![]},{'name':a185_0x207a77(0x1b4),'meowKey':a185_0x207a77(0x1de),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x18c),'hidden':!![]},{'name':'operation-type','meowKey':a185_0x207a77(0x1bb),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x186),'hidden':!![]},{'name':a185_0x207a77(0x181),'meowKey':a185_0x207a77(0x169),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x187),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x207a77(0x17c),'app',a185_0x207a77(0x1a7),'format','jq',a185_0x207a77(0x1a1),a185_0x207a77(0x165),a185_0x207a77(0x1c4),'ci']);export function buildMeowFlags(){const _0x40ae4e=a185_0x207a77;return Object['fromEntries'](GLOBAL_FLAGS[_0x40ae4e(0x179)](_0x3a32d5=>[_0x3a32d5[_0x40ae4e(0x1c9)],{'type':_0x3a32d5[_0x40ae4e(0x16c)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a186_0x3b9ceb=a186_0x7e74;(function(_0x207a86,_0xcd4fc9){const _0x2f09c9=a186_0x7e74,_0x1c85c2=_0x207a86();while(!![]){try{const _0x2805b4=-parseInt(_0x2f09c9(0xae))/0x1+parseInt(_0x2f09c9(0xb3))/0x2*(-parseInt(_0x2f09c9(0xaf))/0x3)+parseInt(_0x2f09c9(0xb8))/0x4+-parseInt(_0x2f09c9(0xb9))/0x5*(-parseInt(_0x2f09c9(0xba))/0x6)+parseInt(_0x2f09c9(0xb6))/0x7*(parseInt(_0x2f09c9(0xb2))/0x8)+-parseInt(_0x2f09c9(0xb0))/0x9*(-parseInt(_0x2f09c9(0xb1))/0xa)+-parseInt(_0x2f09c9(0xac))/0xb*(parseInt(_0x2f09c9(0xb5))/0xc);if(_0x2805b4===_0xcd4fc9)break;else _0x1c85c2['push'](_0x1c85c2['shift']());}catch(_0x488c48){_0x1c85c2['push'](_0x1c85c2['shift']());}}}(a186_0x604d,0x30b71));function a186_0x7e74(_0x278c17,_0x54b8ed){_0x278c17=_0x278c17-0xac;const _0x604d11=a186_0x604d();let _0x7e7462=_0x604d11[_0x278c17];return _0x7e7462;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a186_0x3b9ceb(0xb7),'format':'compress','locale':a186_0x3b9ceb(0xad),'riskLevel':a186_0x3b9ceb(0xbb),'apiDir':DEFAULT_API_DIR};function a186_0x604d(){const _0x5e4bcf=['high-risk-write','55bdAJXU','en-US','130735Dtpetb','15EVTJvl','76509BQXEMb','310dtmtFk','310888CBjbZG','73954fQwhWO','compress','797028pKvmkQ','21OQYqLy','production','1106156OPyDBL','15vCnvso','381198VdsXfC'];a186_0x604d=function(){return _0x5e4bcf;};return a186_0x604d();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a186_0x3b9ceb(0xb4);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a187_0x50ea67=a187_0xb811;(function(_0x201df5,_0x2320b8){const _0x4b07c1=a187_0xb811,_0x3a2fb1=_0x201df5();while(!![]){try{const _0x31c434=parseInt(_0x4b07c1(0xdf))/0x1+-parseInt(_0x4b07c1(0xdd))/0x2+-parseInt(_0x4b07c1(0xd2))/0x3+parseInt(_0x4b07c1(0xdc))/0x4+parseInt(_0x4b07c1(0xdb))/0x5*(parseInt(_0x4b07c1(0xd0))/0x6)+-parseInt(_0x4b07c1(0xd9))/0x7+-parseInt(_0x4b07c1(0xd7))/0x8*(-parseInt(_0x4b07c1(0xd3))/0x9);if(_0x31c434===_0x2320b8)break;else _0x3a2fb1['push'](_0x3a2fb1['shift']());}catch(_0x442205){_0x3a2fb1['push'](_0x3a2fb1['shift']());}}}(a187_0xb034,0x92b54));import{getEnv,isProduction}from'../constant/env.js';function a187_0xb811(_0x11717e,_0x57d051){_0x11717e=_0x11717e-0xce;const _0xb03402=a187_0xb034();let _0xb81192=_0xb03402[_0x11717e];return _0xb81192;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x42368d){const _0x4032f3=a187_0xb811;customApiDomain=_0x42368d?.[_0x4032f3(0xe0)],customUserDomain=_0x42368d?.[_0x4032f3(0xce)],customRuntimeDomain=_0x42368d?.[_0x4032f3(0xda)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a187_0x50ea67(0xde):a187_0x50ea67(0xd5));function a187_0xb034(){const _0x3f2fd4=['runtimeDomain','30905uQzTIo','1499688oBHTCh','1014812SyOIOu','https://api.lovrabet.com','286318gBgapf','apiDomain','userDomain','https://daily.lovrabet.com','6JFgoGm','https://app.lovrabet.com','2857362oaktav','16875333yhYZuf','/web-app/app/','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','8FtNCJE','/app/','3371774tMwqVo'];a187_0xb034=function(){return _0x3f2fd4;};return a187_0xb034();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a187_0x50ea67(0xd6));export const getAppDomain=()=>isProduction(getEnv())?a187_0x50ea67(0xd1):a187_0x50ea67(0xcf);export const getAppBaseUrl=_0x4409fe=>{const _0x173dd2=a187_0x50ea67,_0x598888=encodeURIComponent(_0x4409fe['trim']());return isProduction(getEnv())?getAppDomain()+_0x173dd2(0xd8)+_0x598888:getAppDomain()+_0x173dd2(0xd4)+_0x598888;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a188_0x1351(_0x306958,_0x54c2f3){_0x306958=_0x306958-0xc5;const _0x487b63=a188_0x487b();let _0x13519e=_0x487b63[_0x306958];return _0x13519e;}const a188_0x305a85=a188_0x1351;(function(_0x4fee5c,_0x541d94){const _0x15c311=a188_0x1351,_0x3a1d92=_0x4fee5c();while(!![]){try{const _0x3c13ca=-parseInt(_0x15c311(0xd0))/0x1*(parseInt(_0x15c311(0xd4))/0x2)+-parseInt(_0x15c311(0xd1))/0x3+parseInt(_0x15c311(0xca))/0x4*(-parseInt(_0x15c311(0xc7))/0x5)+-parseInt(_0x15c311(0xce))/0x6*(parseInt(_0x15c311(0xc9))/0x7)+-parseInt(_0x15c311(0xcf))/0x8*(parseInt(_0x15c311(0xc8))/0x9)+parseInt(_0x15c311(0xc6))/0xa+-parseInt(_0x15c311(0xd2))/0xb*(-parseInt(_0x15c311(0xcb))/0xc);if(_0x3c13ca===_0x541d94)break;else _0x3a1d92['push'](_0x3a1d92['shift']());}catch(_0x4fda60){_0x3a1d92['push'](_0x3a1d92['shift']());}}}(a188_0x487b,0x3a290));export const RABETBASE_ENV_VALUES=[a188_0x305a85(0xd5),'daily'];export function normalizeEnv(_0x40cb70){const _0xbba678=a188_0x305a85;return _0x40cb70===_0xbba678(0xcc)?'production':_0x40cb70;}export function isProduction(_0x4791c0){const _0x317889=a188_0x305a85;return normalizeEnv(_0x4791c0)===_0x317889(0xd5);}export function isDaily(_0x4ae6e1){const _0x1661d6=a188_0x305a85;return normalizeEnv(_0x4ae6e1)===_0x1661d6(0xc5);}export function isDev(_0x482fcc){const _0x4f31a6=a188_0x305a85,_0x283741=normalizeEnv(_0x482fcc);return _0x283741===_0x4f31a6(0xcd)||_0x283741===_0x4f31a6(0xd3);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a188_0x305a85(0xd5));function a188_0x487b(){const _0x3e026c=['7571724jsUPKf','online','development','381714TEHdst','8ogdNGq','85233QNyvDL','777543CJlmTW','22TdGPXL','dev','2SEXppA','production','daily','3373660MHmyuB','16595BZrMYR','1706976pHkiSA','49cwBGpA','460ijnFJM'];a188_0x487b=function(){return _0x3e026c;};return a188_0x487b();}export function getEnv(){return env;}export function initEnv(_0x283ea5){env=normalizeEnv(_0x283ea5);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a189_0x5ac380=a189_0x3f55;(function(_0x3cf130,_0x4768ef){const _0x1cd934=a189_0x3f55,_0xd8ffa8=_0x3cf130();while(!![]){try{const _0x48b7e7=-parseInt(_0x1cd934(0x188))/0x1*(parseInt(_0x1cd934(0x18e))/0x2)+parseInt(_0x1cd934(0x189))/0x3+parseInt(_0x1cd934(0x18b))/0x4*(-parseInt(_0x1cd934(0x18a))/0x5)+parseInt(_0x1cd934(0x18c))/0x6*(parseInt(_0x1cd934(0x184))/0x7)+parseInt(_0x1cd934(0x186))/0x8*(parseInt(_0x1cd934(0x18d))/0x9)+parseInt(_0x1cd934(0x185))/0xa*(-parseInt(_0x1cd934(0x18f))/0xb)+parseInt(_0x1cd934(0x191))/0xc;if(_0x48b7e7===_0x4768ef)break;else _0xd8ffa8['push'](_0xd8ffa8['shift']());}catch(_0x48103c){_0xd8ffa8['push'](_0xd8ffa8['shift']());}}}(a189_0x12c1,0xdb7ab));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a189_0x5ac380(0x187),a189_0x5ac380(0x190)];function a189_0x3f55(_0x4c4ad9,_0xcec2bc){_0x4c4ad9=_0x4c4ad9-0x184;const _0x12c14f=a189_0x12c1();let _0x3f5594=_0x12c14f[_0x4c4ad9];return _0x3f5594;}function a189_0x12c1(){const _0x57b350=['91sMBhqt','231650KGMnqX','64XHmpTk','pretty','727023VCzwbx','1898373RSpBZH','410100IDQdoT','48ByZWbg','276894meGtug','818703QsuFQb','4HIkAFF','484eBLIzn','compress','28752828ieTnhx'];a189_0x12c1=function(){return _0x57b350;};return a189_0x12c1();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a190_0x2ebe(_0x38d2c2,_0x5e56ff){_0x38d2c2=_0x38d2c2-0xc5;const _0x56cb06=a190_0x56cb();let _0x2ebeec=_0x56cb06[_0x38d2c2];return _0x2ebeec;}const a190_0x38c361=a190_0x2ebe;(function(_0x1fa1bb,_0x1c52c9){const _0x32bfe0=a190_0x2ebe,_0x4b8d28=_0x1fa1bb();while(!![]){try{const _0x478f90=-parseInt(_0x32bfe0(0xc6))/0x1+parseInt(_0x32bfe0(0xc5))/0x2+parseInt(_0x32bfe0(0xc7))/0x3+parseInt(_0x32bfe0(0xcb))/0x4+-parseInt(_0x32bfe0(0xcd))/0x5*(-parseInt(_0x32bfe0(0xca))/0x6)+-parseInt(_0x32bfe0(0xc8))/0x7+-parseInt(_0x32bfe0(0xc9))/0x8;if(_0x478f90===_0x1c52c9)break;else _0x4b8d28['push'](_0x4b8d28['shift']());}catch(_0x1b9a63){_0x4b8d28['push'](_0x4b8d28['shift']());}}}(a190_0x56cb,0x1b000));export const DEFAULT_API_DIR=a190_0x38c361(0xcc);function a190_0x56cb(){const _0x2870a8=['145040YbuBcJ','306036jwfEHn','918078KoMfJe','1529120ZnInZV','48phyjDI','785252xYtTUV','./src/api','129005RWTGdS','146386ZdeIrn'];a190_0x56cb=function(){return _0x2870a8;};return a190_0x56cb();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a191_0x3254(_0x5805b5,_0x3f665a){_0x5805b5=_0x5805b5-0x143;const _0x3e4e6e=a191_0x3e4e();let _0x325459=_0x3e4e6e[_0x5805b5];return _0x325459;}function a191_0x3e4e(){const _0x4933fd=['3364090ZuHdtg','2049018LpNOYF','write','2138559wkxmUh','high-risk-write','1245986rupICb','read','36NpROKI','222692DBNIBr','3412536UWmlXj','4jDbjMZ','5Pqfzgg','165062usGvDb'];a191_0x3e4e=function(){return _0x4933fd;};return a191_0x3e4e();}const a191_0x44d804=a191_0x3254;(function(_0x32340d,_0x4a4a29){const _0x2ebb57=a191_0x3254,_0x1b294f=_0x32340d();while(!![]){try{const _0x52605b=parseInt(_0x2ebb57(0x14f))/0x1*(parseInt(_0x2ebb57(0x14d))/0x2)+parseInt(_0x2ebb57(0x146))/0x3+parseInt(_0x2ebb57(0x14b))/0x4*(-parseInt(_0x2ebb57(0x14e))/0x5)+parseInt(_0x2ebb57(0x144))/0x6+parseInt(_0x2ebb57(0x148))/0x7+parseInt(_0x2ebb57(0x14c))/0x8+parseInt(_0x2ebb57(0x14a))/0x9*(-parseInt(_0x2ebb57(0x143))/0xa);if(_0x52605b===_0x4a4a29)break;else _0x1b294f['push'](_0x1b294f['shift']());}catch(_0xff034f){_0x1b294f['push'](_0x1b294f['shift']());}}}(a191_0x3e4e,0x8f7d8));export const RISK_LEVEL_VALUES=[a191_0x44d804(0x149),a191_0x44d804(0x145),a191_0x44d804(0x147)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a192_0x19f7(_0x25e0e0,_0x26d5d2){_0x25e0e0=_0x25e0e0-0x1a2;const _0x3136e1=a192_0x3136();let _0x19f766=_0x3136e1[_0x25e0e0];return _0x19f766;}(function(_0x3329a5,_0x176af8){const _0x433f58=a192_0x19f7,_0xb56a21=_0x3329a5();while(!![]){try{const _0x584873=-parseInt(_0x433f58(0x1b1))/0x1+parseInt(_0x433f58(0x1bf))/0x2*(-parseInt(_0x433f58(0x1b7))/0x3)+-parseInt(_0x433f58(0x1a5))/0x4*(parseInt(_0x433f58(0x1c4))/0x5)+parseInt(_0x433f58(0x1c6))/0x6+parseInt(_0x433f58(0x1aa))/0x7+parseInt(_0x433f58(0x1b3))/0x8+-parseInt(_0x433f58(0x1c8))/0x9*(-parseInt(_0x433f58(0x1b5))/0xa);if(_0x584873===_0x176af8)break;else _0xb56a21['push'](_0xb56a21['shift']());}catch(_0x24e930){_0xb56a21['push'](_0xb56a21['shift']());}}}(a192_0x3136,0x1f85f));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x4404ed){const _0x2facb8=a192_0x19f7;return typeof _0x4404ed==='string'&&_0x4404ed['trim']()?_0x4404ed[_0x2facb8(0x1a8)]():undefined;}function appProfiles(_0x15e05b){const _0x402740=a192_0x19f7;return _0x15e05b['apps']&&typeof _0x15e05b['apps']===_0x402740(0x1c0)?_0x15e05b[_0x402740(0x1a7)]:{};}function a192_0x3136(){const _0x11e72f=['length','APP','125746PYbJfY','object','ACCESS_KEY','RISK_LEVEL','daily','193435NoNbYk','defaultApp','658488zShTyY','VERBOSE','145863WPmFpD','cookie','apiDir','appcode','projectConfig','globalConfig','read','8MelIiq','pageSize','apps','trim','env','525805uNdFQh','riskLevel','maxRisk','accessKey','inherit','COOKIE','entries','41578YUBdhj','MAX_RISK','878992SqPnCp','find','10lKWheL','locale','3axKyYR','FORMAT','format','keys','app','production'];a192_0x3136=function(){return _0x11e72f;};return a192_0x3136();}function resolveDefaultAppName(_0x3c636c){const _0x44af9b=a192_0x19f7,_0x4ea170=stringConfigValue(_0x3c636c[_0x44af9b(0x1c5)]);if(_0x4ea170)return _0x4ea170;return Object[_0x44af9b(0x1ba)](appProfiles(_0x3c636c))[0x0];}function resolveTopLevelAppCode(_0x4d744c){const _0x40eed6=a192_0x19f7;return stringConfigValue(_0x4d744c[_0x40eed6(0x1cb)])||stringConfigValue(_0x4d744c[_0x40eed6(0x1bb)]);}export function resolveAppConfig({raw:_0x10d944,flags:_0x1ae86f,layers:_0x5a03e3,readEnv:_0x407bcd}){const _0x240acc=a192_0x19f7,_0x37e88d=_0x5a03e3?.[_0x240acc(0x1a2)]??{},_0x4fb077=_0x5a03e3?.[_0x240acc(0x1a3)]??{},_0x449f95=Object['keys'](_0x37e88d)[_0x240acc(0x1bd)]>0x0,_0x5ce623=!_0x449f95||_0x37e88d[_0x240acc(0x1ae)]===!![],_0x153607=_0x449f95?resolveDefaultAppName(_0x37e88d):undefined,_0x1ee5a7=_0x5ce623?resolveDefaultAppName(_0x4fb077):undefined,_0x47085e=stringConfigValue(_0x1ae86f[_0x240acc(0x1bb)]),_0x3cc58d=_0x407bcd(_0x240acc(0x1be)),_0xf7713f={};if(_0x10d944['apps']&&typeof _0x10d944[_0x240acc(0x1a7)]===_0x240acc(0x1c0))for(const [_0x3271ef,_0x2191a]of Object[_0x240acc(0x1b0)](_0x10d944[_0x240acc(0x1a7)])){_0x2191a&&typeof _0x2191a===_0x240acc(0x1c0)&&_0x2191a[_0x240acc(0x1cb)]&&(_0xf7713f[_0x3271ef]=_0x2191a);}const _0x205c99=_0x10d944[_0x240acc(0x1c5)]||undefined,_0x431e19=Object[_0x240acc(0x1ba)](_0xf7713f)[_0x240acc(0x1bd)]>0x0,_0x34e77a=_0x47085e||_0x153607||_0x3cc58d||_0x1ee5a7||_0x205c99||undefined,_0x45cac8=stringConfigValue(_0x1ae86f[_0x240acc(0x1cb)]),_0x381f0a=_0x45cac8?Object[_0x240acc(0x1b0)](_0xf7713f)[_0x240acc(0x1b4)](([,_0x11c403])=>_0x11c403?.[_0x240acc(0x1cb)]===_0x45cac8):undefined,_0x541782=_0x381f0a?.[0x0],_0x44ef53=_0x381f0a?.[0x1],_0x508df0=_0x45cac8?_0x541782:_0x34e77a;let _0x5572d3=_0x508df0&&_0xf7713f[_0x508df0]?_0xf7713f[_0x508df0]:undefined;_0x45cac8&&_0x44ef53&&(_0x5572d3=_0x44ef53);const _0x252c22=_0x45cac8?_0x44ef53??_0x5572d3:_0x5572d3,_0x33754b=!_0x47085e&&!_0x153607&&_0x3cc58d&&_0x508df0===_0x3cc58d,_0x29342e=_0x47085e||(_0x33754b?_0x3cc58d:undefined)||(_0x45cac8?_0x541782:undefined),_0x329932=_0x252c22?.[_0x240acc(0x1cb)],_0x24195c=_0x449f95?resolveTopLevelAppCode(_0x37e88d):undefined,_0x3612f2=_0x5ce623?resolveTopLevelAppCode(_0x4fb077):undefined,_0x373348=_0x47085e||_0x153607?_0x329932:undefined,_0x1837df=!_0x47085e&&!_0x153607?_0x329932:undefined,_0x2a69c7=_0x45cac8||_0x373348||_0x24195c||_0x1837df||_0x3612f2||undefined,_0x590f10=_0x449f95?stringConfigValue(_0x37e88d[_0x240acc(0x1a9)]):undefined,_0xb6de12=_0x5ce623?stringConfigValue(_0x4fb077['env']):undefined,_0x14d9a1=_0x1ae86f['env']||_0x252c22?.[_0x240acc(0x1a9)]||_0x590f10||_0x407bcd('ENV')||_0xb6de12||_0x10d944[_0x240acc(0x1a9)]||DEFAULT_CONFIG_VALUES[_0x240acc(0x1a9)],_0x274a02=_0x252c22?.['locale']||_0x10d944['locale']||DEFAULT_CONFIG_VALUES[_0x240acc(0x1b6)],_0x52ce68=_0x407bcd(_0x240acc(0x1af))||_0x252c22?.[_0x240acc(0x1c9)]||_0x10d944[_0x240acc(0x1c9)]||undefined,_0x502678=_0x407bcd(_0x240acc(0x1c1))||_0x252c22?.[_0x240acc(0x1ad)]||_0x10d944[_0x240acc(0x1ad)]||undefined,_0x137323=_0x1ae86f['format']||_0x407bcd(_0x240acc(0x1b8))||_0x252c22?.['format']||_0x10d944[_0x240acc(0x1b9)],_0x31b3cd=normalizeLegacyOutputFormat(_0x137323),_0x40704f=_0x407bcd('PAGE_SIZE')||_0x252c22?.[_0x240acc(0x1a6)]||_0x10d944[_0x240acc(0x1a6)],_0x8ce517=_0x40704f?Number(_0x40704f)||undefined:undefined,_0x2eb7c9=_0x407bcd(_0x240acc(0x1c2))||_0x407bcd(_0x240acc(0x1b2))||_0x252c22?.[_0x240acc(0x1ab)]||_0x10d944[_0x240acc(0x1ab)]||_0x10d944[_0x240acc(0x1ac)],_0x4406d5=_0x2eb7c9===_0x240acc(0x1a4)||_0x2eb7c9==='write'?_0x2eb7c9:DEFAULT_CONFIG_VALUES['riskLevel'],_0x221434=_0x407bcd(_0x240acc(0x1c7)),_0x400fc4=_0x221434==='1'||_0x221434==='true',_0x1d346c=_0x252c22?.[_0x240acc(0x1ca)]||_0x10d944['apiDir']||DEFAULT_CONFIG_VALUES[_0x240acc(0x1ca)],_0x8e94e5=isDaily(normalizeEnv(String(_0x14d9a1)))?_0x240acc(0x1c3):_0x240acc(0x1bc);return{'appCode':typeof _0x2a69c7==='string'&&_0x2a69c7[_0x240acc(0x1a8)]()?_0x2a69c7[_0x240acc(0x1a8)]():undefined,'env':_0x8e94e5,'locale':_0x274a02,'cookie':_0x52ce68,'accessKey':_0x502678,'format':_0x31b3cd,'pageSize':_0x8ce517,'riskLevel':_0x4406d5,'verbose':_0x400fc4,'apiDir':_0x1d346c,'apps':_0xf7713f,'defaultApp':_0x205c99,'currentApp':_0x431e19?_0x508df0:undefined,'explicitAppName':_0x29342e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a193_0x7aef(){const _0x4a0053=['420ZfUYaD','142sbLTXw','authRequired','cookie','16qmzNDg','12ToymaI','8039XLfgAc','266544qRkrro','1926716AJtmss','2526545ZNGukR','3497373xzragY','591019XtZtqg','3014915CcorpT'];a193_0x7aef=function(){return _0x4a0053;};return a193_0x7aef();}(function(_0x5f1f76,_0x3fa861){const _0x262b88=a193_0x12e7,_0x24eae4=_0x5f1f76();while(!![]){try{const _0x1756fe=-parseInt(_0x262b88(0x187))/0x1*(parseInt(_0x262b88(0x182))/0x2)+-parseInt(_0x262b88(0x188))/0x3+-parseInt(_0x262b88(0x189))/0x4+-parseInt(_0x262b88(0x180))/0x5+-parseInt(_0x262b88(0x186))/0x6*(-parseInt(_0x262b88(0x18a))/0x7)+parseInt(_0x262b88(0x185))/0x8*(-parseInt(_0x262b88(0x18b))/0x9)+-parseInt(_0x262b88(0x181))/0xa*(-parseInt(_0x262b88(0x18c))/0xb);if(_0x1756fe===_0x3fa861)break;else _0x24eae4['push'](_0x24eae4['shift']());}catch(_0x57f8fb){_0x24eae4['push'](_0x24eae4['shift']());}}}(a193_0x7aef,0x6f937));import{getIsSessionValid}from'../auth/is-session-valid.js';function a193_0x12e7(_0x18b4f6,_0x3932bb){_0x18b4f6=_0x18b4f6-0x180;const _0x7aef81=a193_0x7aef();let _0x12e7dc=_0x7aef81[_0x18b4f6];return _0x12e7dc;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1dcde0){const _0x5c384f=a193_0x12e7,{getCookie:_0x36c18e}=await import('../auth/get-cookie.js'),_0x5a0726=_0x1dcde0[_0x5c384f(0x184)]||_0x36c18e(),_0x31fe7d=_0x5a0726?await getIsSessionValid():![];return{'cookie':_0x5a0726,'isLoggedIn':_0x31fe7d,async 'getOrLogin'(){const _0x13ef4f=_0x5c384f;if(_0x5a0726&&_0x31fe7d)return _0x5a0726;throw CliErrors[_0x13ef4f(0x183)]();}};}
|