@lovrabet/rabetbase-cli 2.3.12-beta.1 → 2.3.13-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.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 -1
- 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_0x1a7f(){const _0x16a63e=['name','valid','630705ksFCly','32SWQBcC','appCode','451bqQbJC','16154256ASGwbg','212270dHZSCg','flagMissing','sql','indexName','bool','cwd','flatMap','utf-8','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','\x22\x20not\x20found\x20or\x20not\x20accessible','push','find','index_columns','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','--check-indexes\x20requires\x20--schemas.','fields','File\x20not\x20found:\x20','map','split','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','length','isSelectOnly','parameters','from','schema:','unshift','schemas','toLowerCase','3844935uXWciw','str','6sfjeFz','check-indexes','SQL\x20schema\x20validation','file','dbtableConfig','size','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','message','trim','joinAudit','4vJAwKc','sqlType','Dataset\x20\x22','columnNames','pkField','2rUNRxR','index_type','indexes','get','primary','tables','4773045vDuuTx','Table\x20\x22','validation','tableName','type','filter','712054paMMfp','isArray','index_name','string','746761JXaHZf'];a177_0x1a7f=function(){return _0x16a63e;};return a177_0x1a7f();}const a177_0x1d47cb=a177_0x53f4;(function(_0x14c086,_0x297aec){const _0x50771a=a177_0x53f4,_0x576066=_0x14c086();while(!![]){try{const _0x102063=parseInt(_0x50771a(0x129))/0x1*(-parseInt(_0x50771a(0x119))/0x2)+-parseInt(_0x50771a(0x12c))/0x3*(parseInt(_0x50771a(0x114))/0x4)+parseInt(_0x50771a(0x11f))/0x5*(parseInt(_0x50771a(0x14f))/0x6)+-parseInt(_0x50771a(0x125))/0x7*(parseInt(_0x50771a(0x12d))/0x8)+parseInt(_0x50771a(0x14d))/0x9+-parseInt(_0x50771a(0x131))/0xa*(parseInt(_0x50771a(0x12f))/0xb)+parseInt(_0x50771a(0x130))/0xc;if(_0x102063===_0x297aec)break;else _0x576066['push'](_0x576066['shift']());}catch(_0x1bd3db){_0x576066['push'](_0x576066['shift']());}}}(a177_0x1a7f,0x788fd));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a177_0x53f4(_0x18d49b,_0x59dbe5){_0x18d49b=_0x18d49b-0x10d;const _0x1a7f7d=a177_0x1a7f();let _0x53f464=_0x1a7f7d[_0x18d49b];return _0x53f464;}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';export const sqlValidate={'service':a177_0x1d47cb(0x133),'command':'validate','description':a177_0x1d47cb(0x110),'risk':'read','flags':[{'name':a177_0x1d47cb(0x10d),'type':'string','description':a177_0x1d47cb(0x139)},{'name':a177_0x1d47cb(0x133),'type':a177_0x1d47cb(0x128),'description':a177_0x1d47cb(0x144)},{'name':a177_0x1d47cb(0x14b),'type':'string','description':a177_0x1d47cb(0x13e)},{'name':a177_0x1d47cb(0x150),'type':'boolean','description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x11cdd0){const _0x498a82=a177_0x1d47cb,_0x1189cd=_0x11cdd0['str']('file'),_0x44eb46=_0x11cdd0[_0x498a82(0x14e)](_0x498a82(0x133)),_0x2dec0d=_0x11cdd0[_0x498a82(0x14e)](_0x498a82(0x14b)),_0x217ff3=_0x11cdd0[_0x498a82(0x135)]('check-indexes');if(!_0x1189cd&&!_0x44eb46)throw CliErrors[_0x498a82(0x132)](_0x498a82(0x10d),'Provide\x20--file\x20or\x20--sql');if(_0x217ff3&&!_0x2dec0d)throw CliErrors[_0x498a82(0x121)](_0x498a82(0x13f));let _0xb82870;if(_0x1189cd){const _0x1395d2=resolve(process[_0x498a82(0x136)](),_0x1189cd);if(!existsSync(_0x1395d2))throw CliErrors[_0x498a82(0x121)](_0x498a82(0x141)+_0x1395d2);_0xb82870=readFileSync(_0x1395d2,_0x498a82(0x138));}else _0xb82870=_0x44eb46;const _0x3e9de2=validateSql(_0xb82870),_0x2081e4={'valid':_0x3e9de2[_0x498a82(0x12b)],'sqlType':_0x3e9de2[_0x498a82(0x115)][_0x498a82(0x123)],'isSelectOnly':_0x3e9de2[_0x498a82(0x115)][_0x498a82(0x146)],'isDangerous':_0x3e9de2[_0x498a82(0x115)]['isDangerous'],'tables':_0x3e9de2[_0x498a82(0x11e)],'parameters':_0x3e9de2[_0x498a82(0x147)],'message':_0x3e9de2[_0x498a82(0x111)]};_0x3e9de2[_0x498a82(0x115)]['reason']&&(_0x2081e4['reason']=_0x3e9de2[_0x498a82(0x115)]['reason']);if(_0x2dec0d&&_0x3e9de2[_0x498a82(0x12b)]){const _0x488d06=_0x2dec0d[_0x498a82(0x143)](',')[_0x498a82(0x142)](_0x433db0=>_0x433db0[_0x498a82(0x112)]())[_0x498a82(0x124)](Boolean),_0xd88d29=[],_0x1a99bc=[],_0x33d9b9=filterDbTableBackedDatasets(await listDatasets(_0x11cdd0[_0x498a82(0x12e)])),_0x9b4a88=new Map(_0x33d9b9[_0x498a82(0x142)](_0x56866b=>[_0x56866b['dbtableConfig']?.[_0x498a82(0x122)]?.[_0x498a82(0x14c)](),_0x56866b]));for(const _0x596523 of _0x3e9de2[_0x498a82(0x11e)]){const _0x1ffd70=_0x9b4a88[_0x498a82(0x11c)](_0x596523[_0x498a82(0x14c)]());!_0x1ffd70&&_0xd88d29[_0x498a82(0x13b)](_0x498a82(0x120)+_0x596523+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x3cbb42 of _0x488d06){let _0x56daef;try{_0x56daef=await getDatasetDetail(_0x3cbb42);}catch{_0xd88d29[_0x498a82(0x13b)](_0x498a82(0x116)+_0x3cbb42+_0x498a82(0x13a));continue;}assertDatasetIsDbTableBacked(_0x56daef,_0x498a82(0x151));const _0x40918a=Array[_0x498a82(0x126)](_0x56daef[_0x498a82(0x140)])?_0x56daef[_0x498a82(0x140)]:[],_0x1d8e49=new Set(_0x40918a[_0x498a82(0x142)](_0x71143d=>_0x71143d['name']?.[_0x498a82(0x14c)]())),_0x31420a=_0x56daef[_0x498a82(0x10e)]?.[_0x498a82(0x122)]||_0x56daef[_0x498a82(0x122)]||_0x3cbb42;_0x2081e4[_0x498a82(0x149)+_0x31420a]={'code':_0x3cbb42,'tableName':_0x31420a,'fieldCount':_0x1d8e49[_0x498a82(0x10f)],'fields':Array[_0x498a82(0x148)](_0x1d8e49)};if(_0x217ff3){const _0x2cc961=normalizeDatasetIndexes(_0x56daef);_0x1a99bc[_0x498a82(0x13b)]({'tableName':_0x31420a,..._0x2cc961});}}_0xd88d29['length']>0x0&&(_0x2081e4['schemaWarnings']=_0xd88d29),_0x217ff3&&(_0x2081e4[_0x498a82(0x113)]=auditSqlJoinIndexes(_0xb82870,_0x1a99bc));}return{'ok':_0x3e9de2[_0x498a82(0x12b)],'data':_0x2081e4,'message':_0x3e9de2[_0x498a82(0x111)]};}};function normalizeDatasetIndexes(_0x46ca36){const _0x5b4d9c=a177_0x1d47cb,_0x702b90=Array[_0x5b4d9c(0x126)](_0x46ca36?.['dataset']?.[_0x5b4d9c(0x11b)])?_0x46ca36['dataset'][_0x5b4d9c(0x11b)]:Array[_0x5b4d9c(0x126)](_0x46ca36?.[_0x5b4d9c(0x11b)])?_0x46ca36[_0x5b4d9c(0x11b)]:[],_0x324f34=_0x702b90[_0x5b4d9c(0x137)](_0x54d0f0=>{const _0x53a054=_0x5b4d9c,_0x22ba36=Array[_0x53a054(0x126)](_0x54d0f0?.[_0x53a054(0x13d)])?_0x54d0f0[_0x53a054(0x13d)]:Array['isArray'](_0x54d0f0?.[_0x53a054(0x117)])?_0x54d0f0[_0x53a054(0x117)]:Array[_0x53a054(0x126)](_0x54d0f0?.['columns'])?_0x54d0f0['columns']:[],_0x96f591=_0x22ba36[_0x53a054(0x124)](_0x4e4f71=>typeof _0x4e4f71===_0x53a054(0x128))[_0x53a054(0x142)](_0x43e6d3=>_0x43e6d3[_0x53a054(0x112)]())[_0x53a054(0x124)](Boolean);if(_0x96f591['length']===0x0)return[];const _0x26fe9e=[_0x54d0f0?.[_0x53a054(0x134)],_0x54d0f0?.[_0x53a054(0x127)],_0x54d0f0?.[_0x53a054(0x12a)]][_0x53a054(0x13c)](_0x12b971=>typeof _0x12b971===_0x53a054(0x128)&&_0x12b971[_0x53a054(0x112)]()),_0x277e6a=[_0x54d0f0?.[_0x53a054(0x11a)],_0x54d0f0?.[_0x53a054(0x123)]][_0x53a054(0x13c)](_0x5ae9d8=>typeof _0x5ae9d8===_0x53a054(0x128)&&_0x5ae9d8[_0x53a054(0x112)]());return[{..._0x26fe9e?{'name':_0x26fe9e['trim']()}:{},..._0x277e6a?{'type':_0x277e6a[_0x53a054(0x112)]()}:{},'columns':_0x96f591}];}),_0x4ab0df=[..._0x324f34],_0x6a19ee=typeof _0x46ca36?.[_0x5b4d9c(0x10e)]?.[_0x5b4d9c(0x118)]===_0x5b4d9c(0x128)?_0x46ca36[_0x5b4d9c(0x10e)][_0x5b4d9c(0x118)][_0x5b4d9c(0x143)](',')[_0x5b4d9c(0x142)](_0x84f148=>_0x84f148[_0x5b4d9c(0x112)]())[_0x5b4d9c(0x124)](Boolean):[];return _0x6a19ee[_0x5b4d9c(0x145)]>0x0&&_0x4ab0df[_0x5b4d9c(0x14a)]({'type':_0x5b4d9c(0x11d),'columns':_0x6a19ee}),{'indexes':_0x4ab0df,'metadataAvailable':_0x324f34['length']>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a178_0x1b19(){const _0x1549d0=['101076WIrmAo','1421135VkDbTf','33suNrkj','9lrczAY','11728PRqqcF','8NqXcGt','1598024zwqXCe','1158iayhfr','5089zFFiNJ','333580nNPPZI','47kAkQYp','7794fZJGYK'];a178_0x1b19=function(){return _0x1549d0;};return a178_0x1b19();}(function(_0x38a17a,_0x500367){const _0x48345f=a178_0x4a92,_0x406aff=_0x38a17a();while(!![]){try{const _0x3a0519=parseInt(_0x48345f(0x1c0))/0x1*(parseInt(_0x48345f(0x1ba))/0x2)+-parseInt(_0x48345f(0x1c1))/0x3*(-parseInt(_0x48345f(0x1bb))/0x4)+parseInt(_0x48345f(0x1b7))/0x5+parseInt(_0x48345f(0x1bd))/0x6*(-parseInt(_0x48345f(0x1be))/0x7)+-parseInt(_0x48345f(0x1bc))/0x8*(parseInt(_0x48345f(0x1b9))/0x9)+-parseInt(_0x48345f(0x1bf))/0xa+parseInt(_0x48345f(0x1b8))/0xb*(-parseInt(_0x48345f(0x1b6))/0xc);if(_0x3a0519===_0x500367)break;else _0x406aff['push'](_0x406aff['shift']());}catch(_0x3655ab){_0x406aff['push'](_0x406aff['shift']());}}}(a178_0x1b19,0x289c4));import{taskStatus}from'../../commands/task/status.js';function a178_0x4a92(_0x1369e7,_0x57c88d){_0x1369e7=_0x1369e7-0x1b6;const _0x1b19be=a178_0x1b19();let _0x4a9218=_0x1b19be[_0x1369e7];return _0x4a9218;}export const taskDefinitions=[taskStatus];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0x29f5ba=a179_0x1707;(function(_0x33a1ca,_0x1e91db){const _0x41b068=a179_0x1707,_0x462da2=_0x33a1ca();while(!![]){try{const _0x4a47f2=-parseInt(_0x41b068(0xbb))/0x1*(parseInt(_0x41b068(0xbf))/0x2)+-parseInt(_0x41b068(0xc2))/0x3*(parseInt(_0x41b068(0xbc))/0x4)+parseInt(_0x41b068(0xc4))/0x5+-parseInt(_0x41b068(0xc6))/0x6+-parseInt(_0x41b068(0xb9))/0x7+-parseInt(_0x41b068(0xc7))/0x8*(parseInt(_0x41b068(0xc3))/0x9)+-parseInt(_0x41b068(0xb2))/0xa*(-parseInt(_0x41b068(0xc1))/0xb);if(_0x4a47f2===_0x1e91db)break;else _0x462da2['push'](_0x462da2['shift']());}catch(_0x23c0ee){_0x462da2['push'](_0x462da2['shift']());}}}(a179_0x4f5e,0x4a035));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';function a179_0x4f5e(){const _0x5411a7=['string','23372gjmjcH','str','2519znOPQd','2421YDBZlP','18TgMYeF','2368225xHeJFw','task','2804112oqIxKd','1520472KIKXNn','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','compress','appCode','89590iveRqh','trim','cookie','taskId','read','task-id','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','3859660UCWgCa','isTerminal','19ozAgLM','2980kNzTAm','flagMissing'];a179_0x4f5e=function(){return _0x5411a7;};return a179_0x4f5e();}function a179_0x1707(_0x395481,_0x59cdab){_0x395481=_0x395481-0xaf;const _0x4f5e6b=a179_0x4f5e();let _0x170771=_0x4f5e6b[_0x395481];return _0x170771;}export const taskStatus={'service':a179_0x29f5ba(0xc5),'command':'status','description':a179_0x29f5ba(0xaf),'risk':a179_0x29f5ba(0xb6),'defaultOutputFormat':a179_0x29f5ba(0xb0),'structuredErrors':!![],'flags':[{'name':a179_0x29f5ba(0xb7),'type':a179_0x29f5ba(0xbe),'required':!![],'description':'Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x109032){const _0x133dfe=a179_0x29f5ba;if(!_0x109032[_0x133dfe(0xc0)](_0x133dfe(0xb7))[_0x133dfe(0xb3)]())throw CliErrors[_0x133dfe(0xbd)](_0x133dfe(0xb7));},async 'execute'(_0x15d5c8){const _0x310d88=a179_0x29f5ba,_0xf9df48=_0x15d5c8['str']('task-id')[_0x310d88(0xb3)](),_0x211a03=normalizeAsyncTask(await getAsyncTaskStatus(_0xf9df48,_0x15d5c8[_0x310d88(0xb1)],_0x15d5c8[_0x310d88(0xb4)]));if(_0x211a03[_0x310d88(0xb5)]!==_0xf9df48)throw CliErrors['apiError'](_0x310d88(0xb8)+_0xf9df48+',\x20received\x20'+_0x211a03[_0x310d88(0xb5)]+'.');const _0x5738ef=buildAsyncTaskStatusCommand(_0x211a03[_0x310d88(0xb5)],_0x15d5c8['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x211a03),'data':{'appCode':_0x15d5c8[_0x310d88(0xb1)],..._0x211a03,'query':_0x211a03[_0x310d88(0xba)]?null:{'command':_0x5738ef}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a180_0x770b7c=a180_0x3377;function a180_0x2e87(){const _0x5c1555=['workspace\x20add','3572346tBkhEg','153fZkEAg','5750efOPxV','add','248648ebvxHM','workspace','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','6231281IteAdY','2017072PTWjrR','26895bKORla','2055630heptvv','name','301280KPgkUI','1nvGmZf','36FGCBly'];a180_0x2e87=function(){return _0x5c1555;};return a180_0x2e87();}(function(_0x13f47d,_0x2fa709){const _0x1ee270=a180_0x3377,_0x2fe230=_0x13f47d();while(!![]){try{const _0x118b9c=parseInt(_0x1ee270(0x1d0))/0x1*(parseInt(_0x1ee270(0x1cd))/0x2)+-parseInt(_0x1ee270(0x1c3))/0x3+-parseInt(_0x1ee270(0x1cb))/0x4+parseInt(_0x1ee270(0x1cf))/0x5*(-parseInt(_0x1ee270(0x1c1))/0x6)+parseInt(_0x1ee270(0x1ca))/0x7+parseInt(_0x1ee270(0x1c7))/0x8*(-parseInt(_0x1ee270(0x1c4))/0x9)+-parseInt(_0x1ee270(0x1c5))/0xa*(-parseInt(_0x1ee270(0x1cc))/0xb);if(_0x118b9c===_0x2fa709)break;else _0x2fe230['push'](_0x2fe230['shift']());}catch(_0x595f03){_0x2fe230['push'](_0x2fe230['shift']());}}}(a180_0x2e87,0xb465e));function a180_0x3377(_0x2e11b3,_0x431e1a){_0x2e11b3=_0x2e11b3-0x1c1;const _0x2e876e=a180_0x2e87();let _0x3377af=_0x2e876e[_0x2e11b3];return _0x3377af;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a180_0x770b7c(0x1c8),'command':a180_0x770b7c(0x1c6),'description':a180_0x770b7c(0x1c9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a180_0x770b7c(0x1ce),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3d20f7=>validateAppName(_0x3d20f7,'workspace\x20add'),'execute':_0x21f522=>runAppAdd(_0x21f522,a180_0x770b7c(0x1c2))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a181_0x5dc782=a181_0x4119;(function(_0x1b08e1,_0x265eca){const _0x5048af=a181_0x4119,_0x21a833=_0x1b08e1();while(!![]){try{const _0x35f74a=-parseInt(_0x5048af(0x111))/0x1+parseInt(_0x5048af(0xfd))/0x2*(parseInt(_0x5048af(0x106))/0x3)+parseInt(_0x5048af(0x117))/0x4*(-parseInt(_0x5048af(0xf4))/0x5)+parseInt(_0x5048af(0x113))/0x6*(parseInt(_0x5048af(0x11c))/0x7)+-parseInt(_0x5048af(0x123))/0x8*(parseInt(_0x5048af(0x127))/0x9)+parseInt(_0x5048af(0xf6))/0xa*(parseInt(_0x5048af(0xf1))/0xb)+parseInt(_0x5048af(0x114))/0xc*(parseInt(_0x5048af(0xf5))/0xd);if(_0x35f74a===_0x265eca)break;else _0x21a833['push'](_0x21a833['shift']());}catch(_0x426a57){_0x21a833['push'](_0x21a833['shift']());}}}(a181_0x46f4,0x35547));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';function a181_0x4119(_0x5e03fe,_0x495943){_0x5e03fe=_0x5e03fe-0xec;const _0x46f46c=a181_0x46f4();let _0x41197e=_0x46f46c[_0x5e03fe];return _0x41197e;}import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a181_0x5dc782(0x11e),SAFE_PROFILE_KEYS=[a181_0x5dc782(0x100),a181_0x5dc782(0x122),'apiDir','format','pageSize','riskLevel',a181_0x5dc782(0x116)],workspaceFlags=[{'name':'app','type':a181_0x5dc782(0x109),'description':a181_0x5dc782(0xee)},{'name':'appcode','type':'string','description':a181_0x5dc782(0xf0)},{'name':a181_0x5dc782(0x122),'type':a181_0x5dc782(0x109),'description':a181_0x5dc782(0x107),'enum':[...RABETBASE_ENV_VALUES]},{'name':a181_0x5dc782(0xfa),'type':a181_0x5dc782(0x109),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a181_0x5dc782(0x126),'type':'string','description':a181_0x5dc782(0x121),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a181_0x5dc782(0x10e),'type':a181_0x5dc782(0xf2),'description':a181_0x5dc782(0x105)},{'name':'riskLevel','type':a181_0x5dc782(0x109),'description':a181_0x5dc782(0xef),'enum':[...RISK_LEVEL_VALUES]},{'name':a181_0x5dc782(0x116),'type':a181_0x5dc782(0x109),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x2f35bd){const _0x5754b6=a181_0x5dc782;return!!_0x2f35bd&&typeof _0x2f35bd===_0x5754b6(0x10d)&&!Array[_0x5754b6(0xed)](_0x2f35bd);}function assertValidAppcode(_0x3383ec){const _0x13db1e=a181_0x5dc782,{valid:_0x133e20,message:_0x57d54e}=validateAppcode(_0x3383ec);if(!_0x133e20)throw CliErrors[_0x13db1e(0xff)]('Invalid\x20appcode:\x20'+_0x3383ec,_0x57d54e);}function sanitizeProfile(_0x4b6f23){if(!isRecord(_0x4b6f23))return{};const _0x2a5ede={};for(const _0x4f679c of SAFE_PROFILE_KEYS){if(_0x4b6f23[_0x4f679c]!==undefined)_0x2a5ede[_0x4f679c]=_0x4b6f23[_0x4f679c];}return _0x2a5ede;}function cloneProfile(_0x2c3be7){return isRecord(_0x2c3be7)?{..._0x2c3be7}:{};}function collectWorkspaceProfileOverrides(_0x562b79){const _0x2730ed=a181_0x5dc782,_0x1f0dad={},_0x35575e=_0x562b79[_0x2730ed(0x115)]('env'),_0x19e310=_0x562b79[_0x2730ed(0x115)]('apiDir'),_0x5dfa90=_0x562b79[_0x2730ed(0x115)]('defaultFormat'),_0x5eb972=_0x562b79[_0x2730ed(0x11a)](_0x2730ed(0x10e)),_0x37b658=_0x562b79[_0x2730ed(0x115)](_0x2730ed(0x110)),_0xf61fa6=_0x562b79['str'](_0x2730ed(0x116));if(_0x35575e)_0x1f0dad[_0x2730ed(0x122)]=_0x35575e;if(_0x19e310)_0x1f0dad['apiDir']=_0x19e310;if(_0x5dfa90)_0x1f0dad['format']=_0x5dfa90;if(_0x5eb972!==undefined&&_0x5eb972!=='')_0x1f0dad[_0x2730ed(0x10e)]=Number(_0x5eb972);if(_0x37b658)_0x1f0dad[_0x2730ed(0x110)]=_0x37b658;if(_0xf61fa6)_0x1f0dad[_0x2730ed(0x116)]=_0xf61fa6;return _0x1f0dad;}async function validateWorkspaceArgs(_0x592ee9){const _0x59da4f=a181_0x5dc782,_0x4f9f73=_0x592ee9[_0x59da4f(0x115)]('app')['trim'](),_0x11cbf5=_0x592ee9[_0x59da4f(0x115)](_0x59da4f(0x100))[_0x59da4f(0xfe)]();if(!_0x4f9f73&&!_0x11cbf5)throw CliErrors[_0x59da4f(0xff)](_0x59da4f(0xf7),_0x59da4f(0xfc)+CLI_BIN_NAME+_0x59da4f(0x103)+CLI_BIN_NAME+_0x59da4f(0x10c));if(_0x11cbf5)assertValidAppcode(_0x11cbf5);}function resolveKnownApps(){const _0x50b8cb=a181_0x5dc782,{config:_0x510d45,layers:_0x181be8}=readRawConfigWithLayers(),_0x4eb49d=isRecord(_0x510d45[_0x50b8cb(0x10b)])?_0x510d45[_0x50b8cb(0x10b)]:{},_0x5af3d2=isRecord(_0x181be8[_0x50b8cb(0xec)][_0x50b8cb(0x10b)])?_0x181be8[_0x50b8cb(0xec)][_0x50b8cb(0x10b)]:{};return{..._0x5af3d2,..._0x4eb49d};}function a181_0x46f4(){const _0x3708c8=['env','3976eBbLgA','\x22\x20not\x20found.','keys','defaultFormat','5373IPCLWl','globalConfig','isArray','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','11hrTEGV','number','length','512545gZzvzf','45396SalsOH','3651020OseBce','Missing\x20workspace\x20app\x20selector.','App\x20\x22','updated','apiDir','write','Use\x20`','253412QBOzHN','trim','validation','appcode','init','\x20workspace\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`',').\x20Config:\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','3AOosyx','Target\x20environment','project','string','use','apps','\x20workspace\x20use\x20--app\x20<name>`.','object','pageSize','\x20(appcode:\x20','riskLevel','40350SzPbHw','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','6YvCiZZ','288aAUPyL','str','locale','4xAUJTa','join','workspace.','flag','.\x20Credentials:\x20not\x20written.','576737vmsVur','initialized','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','app','workspace','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile'];a181_0x46f4=function(){return _0x3708c8;};return a181_0x46f4();}async function configureWorkspace(_0x3b85af,_0x1fa232){const _0x5557af=a181_0x5dc782,_0xf4792f=_0x3b85af['str']('app')[_0x5557af(0xfe)](),_0x3e76e6=_0x3b85af[_0x5557af(0x115)](_0x5557af(0x100))[_0x5557af(0xfe)](),_0x2c9272=_0xf4792f||_0x3e76e6;if(!_0x2c9272)throw CliErrors[_0x5557af(0xff)](_0x5557af(0xf7),_0x5557af(0xfc)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x5557af(0x10c));if(_0x3e76e6)assertValidAppcode(_0x3e76e6);const _0x145dc4=resolveWriteConfigPath(_0x5557af(0x108)),_0x5bb61c=readConfigFile(_0x145dc4),_0x5b30f7=resolveKnownApps(),_0x1f1a4c=isRecord(_0x5bb61c['apps'])?{..._0x5bb61c[_0x5557af(0x10b)]}:{},_0x2cd063=cloneProfile(_0x1f1a4c[_0x2c9272]),_0xd3aa8d=sanitizeProfile(_0x5b30f7[_0x2c9272]),_0x3b39f6=_0x3e76e6?{}:_0xd3aa8d,_0x3b906=_0x3e76e6||_0x3b39f6[_0x5557af(0x100)];if(!_0x3b906){const _0x585edd=Object[_0x5557af(0x125)](_0x5b30f7),_0x50f267=_0x585edd[_0x5557af(0xf3)]===0x0?_0x5557af(0xfc)+CLI_BIN_NAME+_0x5557af(0x102)+_0x1fa232+'\x20--app\x20'+_0x2c9272+'\x20--appcode\x20<code>`.':_0x5557af(0x112)+_0x585edd[_0x5557af(0x118)](',\x20');throw CliErrors[_0x5557af(0xff)](_0x5557af(0xf8)+_0x2c9272+_0x5557af(0x124),_0x50f267);}assertValidAppcode(String(_0x3b906));const _0x49fd6e={..._0x3b39f6,..._0x2cd063,'appcode':String(_0x3b906),...collectWorkspaceProfileOverrides(_0x3b85af)};return _0x1f1a4c[_0x2c9272]=_0x49fd6e,_0x5bb61c[_0x5557af(0x10b)]=_0x1f1a4c,_0x5bb61c['defaultApp']=_0x2c9272,delete _0x5bb61c[_0x5557af(0x100)],delete _0x5bb61c[_0x5557af(0x11f)],_0x49fd6e['env']&&(_0x5bb61c[_0x5557af(0x122)]=_0x49fd6e['env']),writeConfigFile(_0x145dc4,_0x5bb61c),{'ok':!![],'message':'Workspace\x20'+(_0x1fa232===_0x5557af(0x101)?_0x5557af(0x11d):_0x5557af(0xf9))+':\x20'+_0x2c9272+_0x5557af(0x10f)+_0x49fd6e['appcode']+_0x5557af(0x104)+_0x145dc4+_0x5557af(0x11b),'data':{'operation':_0x5557af(0x119)+_0x1fa232,'configPath':_0x145dc4,'app':_0x2c9272,'appcode':_0x49fd6e[_0x5557af(0x100)],'env':_0x49fd6e[_0x5557af(0x122)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a181_0x5dc782(0x120),'command':'init','description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':a181_0x5dc782(0xfb),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4f8776=>configureWorkspace(_0x4f8776,a181_0x5dc782(0x101))},workspaceUseDefinition={'service':a181_0x5dc782(0x120),'command':a181_0x5dc782(0x10a),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1423bc=>configureWorkspace(_0x1423bc,a181_0x5dc782(0x10a))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a182_0x75334a=a182_0x154f;(function(_0x255eab,_0x4e8719){const _0x45b9c2=a182_0x154f,_0x3752d3=_0x255eab();while(!![]){try{const _0x318d23=-parseInt(_0x45b9c2(0x10f))/0x1+parseInt(_0x45b9c2(0x10d))/0x2*(parseInt(_0x45b9c2(0x103))/0x3)+-parseInt(_0x45b9c2(0x10a))/0x4*(-parseInt(_0x45b9c2(0x10b))/0x5)+-parseInt(_0x45b9c2(0x102))/0x6+-parseInt(_0x45b9c2(0x10c))/0x7+parseInt(_0x45b9c2(0x110))/0x8+parseInt(_0x45b9c2(0x104))/0x9;if(_0x318d23===_0x4e8719)break;else _0x3752d3['push'](_0x3752d3['shift']());}catch(_0x285470){_0x3752d3['push'](_0x3752d3['shift']());}}}(a182_0x112b,0x9668a));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a182_0x154f(_0x312695,_0x2fafa7){_0x312695=_0x312695-0x102;const _0x112b05=a182_0x112b();let _0x154fab=_0x112b05[_0x312695];return _0x154fab;}export const workspaceRemoveDefinition={'service':a182_0x75334a(0x105),'command':a182_0x75334a(0x109),'description':a182_0x75334a(0x108),'risk':'high-risk-write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a182_0x75334a(0x10e),'description':a182_0x75334a(0x106),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x30158b=>validateAppName(_0x30158b,a182_0x75334a(0x107)),'execute':_0x127fd7=>runAppRemove(_0x127fd7,'workspace\x20remove')};function a182_0x112b(){const _0x12d1b9=['Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','remove','1166644iAaoko','5BXFamB','6145055YvNoHf','386330JnXEpC','name','615548thiXeL','7216528EXvEiR','1806582vpdjxI','9jxkjqp','5736258eYCdEw','workspace','App\x20profile\x20name\x20to\x20remove','workspace\x20remove'];a182_0x112b=function(){return _0x12d1b9;};return a182_0x112b();}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a183_0x5afed9=a183_0x4b80;(function(_0x362cc2,_0x37cbfd){const _0x415b8e=a183_0x4b80,_0x458091=_0x362cc2();while(!![]){try{const _0x38ceb7=parseInt(_0x415b8e(0xa2))/0x1+parseInt(_0x415b8e(0xaf))/0x2+parseInt(_0x415b8e(0xb1))/0x3*(-parseInt(_0x415b8e(0xab))/0x4)+parseInt(_0x415b8e(0xac))/0x5*(parseInt(_0x415b8e(0xb7))/0x6)+-parseInt(_0x415b8e(0xa3))/0x7+parseInt(_0x415b8e(0xb9))/0x8*(parseInt(_0x415b8e(0xb5))/0x9)+-parseInt(_0x415b8e(0xbe))/0xa;if(_0x38ceb7===_0x37cbfd)break;else _0x458091['push'](_0x458091['shift']());}catch(_0x4d2c2a){_0x458091['push'](_0x458091['shift']());}}}(a183_0x3048,0xc91bc));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_0x5afed9(0xc1),a183_0x5afed9(0xbc),a183_0x5afed9(0xaa),a183_0x5afed9(0x9e),a183_0x5afed9(0xae)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a183_0x5afed9(0xad),a183_0x5afed9(0xaa),'format',a183_0x5afed9(0xc1),'accessKey','apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};function a183_0x4b80(_0x537d70,_0x285104){_0x537d70=_0x537d70-0x98;const _0x3048f3=a183_0x3048();let _0x4b80ba=_0x3048f3[_0x537d70];return _0x4b80ba;}export function formatConfigKeyList(_0xd81866){const _0x5f257c=a183_0x5afed9;return[..._0xd81866][_0x5f257c(0x99)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xd63a84){return TOP_LEVEL_CONFIG_KEYS['has'](_0xd63a84);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3464ce=a183_0x5afed9;return _0x3464ce(0xa8)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a183_0x5afed9(0xad),'apiDir':a183_0x5afed9(0x9c),'cookie':a183_0x5afed9(0xc1),'accessKey':a183_0x5afed9(0xbc),'defaultFormat':'format','pageSize':a183_0x5afed9(0xa1),'riskLevel':a183_0x5afed9(0xae),'locale':a183_0x5afed9(0xaa)};export function getAppProfileFlagDefs(){const _0x5b3ed3=a183_0x5afed9;return[{'name':_0x5b3ed3(0xad),'type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0x9d),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x5b3ed3(0x9c),'type':_0x5b3ed3(0xbf),'description':'API\x20directory\x20path'},{'name':_0x5b3ed3(0xc1),'type':'string','description':_0x5b3ed3(0xba),'hidden':!![]},{'name':_0x5b3ed3(0xbc),'type':_0x5b3ed3(0xbf),'description':'Access\x20key','hidden':!![]},{'name':_0x5b3ed3(0xb4),'type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0xa0),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x5b3ed3(0xa1),'type':'number','description':_0x5b3ed3(0xa6)},{'name':'riskLevel','type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0xb2),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0xa4)}];}export function collectAppProfileOverrides(_0x589b13){const _0x234f28=a183_0x5afed9,_0x472343={};for(const [_0x3e977c,_0x21a3b9]of Object[_0x234f28(0xb0)](APP_PROFILE_FLAG_KEY_MAP)){const _0x354e92=_0x589b13(_0x3e977c);if(!_0x354e92)continue;_0x472343[_0x21a3b9]=_0x21a3b9==='pageSize'?Number(_0x354e92):_0x354e92;}return _0x472343;}export function buildAppProfileListFields(_0x535095){const _0x1542d5=a183_0x5afed9;return{'env':_0x535095[_0x1542d5(0xad)]??null,'apiDir':_0x535095[_0x1542d5(0x9c)]??null,'hasCookie':!!_0x535095[_0x1542d5(0xc1)],'hasAccessKey':!!_0x535095[_0x1542d5(0xbc)],'format':_0x535095[_0x1542d5(0x9e)]??null,'pageSize':_0x535095['pageSize']??null,'riskLevel':_0x535095[_0x1542d5(0xae)]??null,'locale':_0x535095[_0x1542d5(0xaa)]??null};}export function buildAppDoctorFields(_0x13a729,_0x5b8bf2){const _0x3de744=a183_0x5afed9;return{'env':{'value':_0x13a729['env']||_0x5b8bf2[_0x3de744(0xad)],'source':_0x13a729['env']?_0x3de744(0xbb):'inherit'},'apiDir':{'value':_0x13a729[_0x3de744(0x9c)]||_0x5b8bf2[_0x3de744(0x9c)],'source':_0x13a729['apiDir']?_0x3de744(0xbb):_0x3de744(0xc0)},'cookie':{'value':_0x13a729['cookie']||_0x5b8bf2[_0x3de744(0xc1)],'source':_0x13a729['cookie']?'app':_0x3de744(0xc0)},'accessKey':{'value':_0x13a729[_0x3de744(0xbc)]||_0x5b8bf2[_0x3de744(0xbc)],'source':_0x13a729[_0x3de744(0xbc)]?_0x3de744(0xbb):_0x3de744(0xc0)}};}export function buildCanonicalAppConfig(_0x463b4d,_0x57db20){const _0xdca2fe=a183_0x5afed9,_0x5f59ee=_0x463b4d[_0xdca2fe(0x98)](_0x49a125=>String(_0x49a125||'')[_0xdca2fe(0xa9)]())[_0xdca2fe(0xb8)](Boolean);if(_0x5f59ee[_0xdca2fe(0xb3)]===0x0)return{};const _0x288778={};for(const _0x74a277 of _0x5f59ee){_0x288778[_0x74a277]=_0x57db20?{'appcode':_0x74a277,'env':_0x57db20}:{'appcode':_0x74a277};}return{'apps':_0x288778,'defaultApp':_0x5f59ee[0x0]};}export function buildCanonicalProjectConfig(_0x25cb8f,_0x49c742){const _0x1d4834=a183_0x5afed9,{appCodes:appCodes=[],env:_0x26749c,metadata:_0x297590}=_0x49c742,_0x30e7ed={..._0x25cb8f,..._0x297590||{}};delete _0x30e7ed[_0x1d4834(0x9a)],delete _0x30e7ed['app'];if(_0x26749c)_0x30e7ed[_0x1d4834(0xad)]=_0x26749c;else!_0x30e7ed[_0x1d4834(0xad)]&&(_0x30e7ed[_0x1d4834(0xad)]=DEFAULT_CONFIG_VALUES['env']);const _0x20fd72=buildCanonicalAppConfig(appCodes,_0x30e7ed[_0x1d4834(0xad)]);return Object[_0x1d4834(0xbd)](_0x20fd72)[_0x1d4834(0xb3)]>0x0&&(_0x30e7ed[_0x1d4834(0xa5)]=_0x20fd72['apps'],_0x30e7ed[_0x1d4834(0x9b)]=_0x20fd72['defaultApp']),_0x30e7ed;}function a183_0x3048(){const _0x2fe2e2=['length','defaultFormat','117UkgVwI','zh-CN','6YbNkZB','filter','648392OmfARg','Auth\x20cookie','app','accessKey','keys','15505700jHkUTM','string','inherit','cookie','map','join','appcode','defaultApp','apiDir','Target\x20environment','format','en-US','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','pageSize','1148134HWfkKa','208502NNZjsZ','Locale','apps','Default\x20page\x20size','toLowerCase','Config\x20key\x20(','trim','locale','8LFZvAW','3516085uzIHvS','env','riskLevel','1448468UOgBSw','entries','1837689CjhzAE','Risk\x20level'];a183_0x3048=function(){return _0x2fe2e2;};return a183_0x3048();}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a183_0x5afed9(0xb6),'zh_cn':'zh-CN','en':a183_0x5afed9(0x9f),'en-us':'en-US','en_us':a183_0x5afed9(0x9f)};export function normalizeLocale(_0x2b7b57){const _0x114de2=a183_0x5afed9;if(!_0x2b7b57)return null;return LOCALE_MAP[_0x2b7b57[_0x114de2(0xa7)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a184_0x36954b=a184_0x14e8;function a184_0x25c1(){const _0x58b45d=['https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','55170JQwRzM','472pIcUfc','1671816bHckRl','905FdNvnh','1169651qIhicx','4044260PEUltC','289866SpoYxL','306qMStgx','909GqcOfq','13362sRFxHA'];a184_0x25c1=function(){return _0x58b45d;};return a184_0x25c1();}function a184_0x14e8(_0x320869,_0xc8feef){_0x320869=_0x320869-0x1a2;const _0x25c1e1=a184_0x25c1();let _0x14e86f=_0x25c1e1[_0x320869];return _0x14e86f;}(function(_0x519f44,_0x87542f){const _0x21d06b=a184_0x14e8,_0x54eba2=_0x519f44();while(!![]){try{const _0x378658=parseInt(_0x21d06b(0x1aa))/0x1+parseInt(_0x21d06b(0x1ab))/0x2*(parseInt(_0x21d06b(0x1ac))/0x3)+parseInt(_0x21d06b(0x1a6))/0x4+-parseInt(_0x21d06b(0x1a7))/0x5*(-parseInt(_0x21d06b(0x1a2))/0x6)+-parseInt(_0x21d06b(0x1a8))/0x7+parseInt(_0x21d06b(0x1a5))/0x8*(-parseInt(_0x21d06b(0x1a4))/0x9)+-parseInt(_0x21d06b(0x1a9))/0xa;if(_0x378658===_0x87542f)break;else _0x54eba2['push'](_0x54eba2['shift']());}catch(_0x51fb1b){_0x54eba2['push'](_0x54eba2['shift']());}}}(a184_0x25c1,0x36b4d));export const CLI_VERSION_POLICY_URL=a184_0x36954b(0x1a3);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a185_0x56bdc9=a185_0xac00;(function(_0x57d88,_0x2cf866){const _0x170bc1=a185_0xac00,_0x31c866=_0x57d88();while(!![]){try{const _0x1305e8=parseInt(_0x170bc1(0x207))/0x1*(parseInt(_0x170bc1(0x221))/0x2)+parseInt(_0x170bc1(0x211))/0x3*(parseInt(_0x170bc1(0x1ae))/0x4)+parseInt(_0x170bc1(0x1c8))/0x5*(-parseInt(_0x170bc1(0x1bf))/0x6)+-parseInt(_0x170bc1(0x1b8))/0x7+-parseInt(_0x170bc1(0x1bc))/0x8*(-parseInt(_0x170bc1(0x210))/0x9)+parseInt(_0x170bc1(0x1cf))/0xa+-parseInt(_0x170bc1(0x1f9))/0xb;if(_0x1305e8===_0x2cf866)break;else _0x31c866['push'](_0x31c866['shift']());}catch(_0x5bf36e){_0x31c866['push'](_0x31c866['shift']());}}}(a185_0x3c4b,0xb191b));function a185_0xac00(_0x444544,_0x1ff0b6){_0x444544=_0x444544-0x1a9;const _0x3c4bd6=a185_0x3c4b();let _0xac0007=_0x3c4bd6[_0x444544];return _0xac0007;}function a185_0x3c4b(){const _0x28c876=['SQL\x20string','10QjNQkA','Output\x20path','Asynchronous\x20task\x20ID','Reveal\x20sensitive\x20value','SQL\x20code','Skip\x20import\x20generation','dryRun','1070240AdPOHP','Page\x20size','Override\x20appcode','Alias\x20for\x20--non-interactive','dbid','expected-children-count','all','Use\x20project\x20config\x20scope','operation','taskId','watch','Expected\x20current\x20menu\x20path','tags','Keyword\x20filter','Apply\x20to\x20all','Dataset\x20code','production\x20|\x20daily','sort','Config\x20value','fromEntries','File\x20path','Schemas','expect-parent-id','operation-type','sqlname','map','functionNode','DB\x20ID','project','Menu\x20sort\x20value','Config\x20key','datasetcode','<expr>','nonInteractive','string','schemas','format','app','Read\x20value\x20from\x20environment\x20variable','Target\x20path','function-node','sql','11239459EfGjqO','appcode','Preview\x20operation\x20without\x20executing','help','remote','clear','Skip\x20confirmation\x20for\x20high-risk\x20writes','@lovrabet/rabetbase-cli','Force\x20non-interactive\x20mode\x20(CI)','Use\x20global\x20config\x20scope','type','target','value','yes','4yjsDlQ','Output\x20format','file','confirm','page','parent-id','sqlName','force','boolean','4176ojYgbH','2962728rneFct','skipImports','from-env','key','stdin','params','Read\x20value\x20from\x20stdin','Page\x20number','Force\x20overwrite','Watch\x20mode','env','SQL\x20name','expectParentId','expectedChildrenCount','Expected\x20current\x20child\x20count','keyword','580314zQSdnD','Expected\x20affected\x20count','Title','description-file','Verbose\x20output','meowKey','verbose','Confirm\x20destructive\x20action','code','Type\x20filter','sqlcode','description','output','4kAYVxB','non-interactive','expectPath','Clear','Code\x20filter','Operation\x20type','parentId','Parent\x20menu\x20id','fromEnv','Show\x20help','3712478Thwzvc','global','enableBffSave','title','21968utHRjI','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','name','3749778pJtuON','json\x20|\x20pretty\x20|\x20compress','Select\x20app\x20profile\x20by\x20name','label','Record\x20ID','reveal','pagesize','dry-run'];a185_0x3c4b=function(){return _0x28c876;};return a185_0x3c4b();}export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a185_0x56bdc9(0x200);export const GLOBAL_FLAGS=[{'name':a185_0x56bdc9(0x1fa),'meowKey':a185_0x56bdc9(0x1fa),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1d1),'hint':'<code>'},{'name':a185_0x56bdc9(0x1f4),'meowKey':a185_0x56bdc9(0x1f4),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1c1),'hint':'<name>'},{'name':'env','meowKey':a185_0x56bdc9(0x21b),'type':a185_0x56bdc9(0x1f1),'description':'Environment','hint':a185_0x56bdc9(0x1df)},{'name':a185_0x56bdc9(0x1f3),'meowKey':a185_0x56bdc9(0x1f3),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x208),'hint':a185_0x56bdc9(0x1c0)},{'name':'jq','meowKey':'jq','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1bd),'hint':a185_0x56bdc9(0x1ef)},{'name':a185_0x56bdc9(0x1c6),'meowKey':a185_0x56bdc9(0x1ce),'type':'boolean','description':a185_0x56bdc9(0x1fb)},{'name':a185_0x56bdc9(0x206),'meowKey':a185_0x56bdc9(0x206),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1ff)},{'name':a185_0x56bdc9(0x1af),'meowKey':a185_0x56bdc9(0x1f0),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x201)},{'name':a185_0x56bdc9(0x1b9),'meowKey':a185_0x56bdc9(0x1b9),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x202)},{'name':a185_0x56bdc9(0x1eb),'meowKey':a185_0x56bdc9(0x1eb),'type':'boolean','description':a185_0x56bdc9(0x1d6)},{'name':'ci','meowKey':'ci','type':'boolean','description':a185_0x56bdc9(0x1d2),'hidden':!![]},{'name':'help','meowKey':a185_0x56bdc9(0x1fc),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1b7)},{'name':a185_0x56bdc9(0x1be),'meowKey':a185_0x56bdc9(0x1be),'type':a185_0x56bdc9(0x1f1),'description':'Name','hidden':!![]},{'name':a185_0x56bdc9(0x1bb),'meowKey':a185_0x56bdc9(0x1bb),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x223),'hidden':!![]},{'name':a185_0x56bdc9(0x1fe),'meowKey':a185_0x56bdc9(0x1fe),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1b1),'hidden':!![]},{'name':a185_0x56bdc9(0x1d9),'meowKey':a185_0x56bdc9(0x1d9),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x21a),'hidden':!![]},{'name':a185_0x56bdc9(0x1ad),'meowKey':'output','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1c9),'hidden':!![]},{'name':a185_0x56bdc9(0x216),'meowKey':a185_0x56bdc9(0x216),'type':a185_0x56bdc9(0x1f1),'description':'JSON\x20params','hidden':!![]},{'name':a185_0x56bdc9(0x1ee),'meowKey':a185_0x56bdc9(0x1ee),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1de),'hidden':!![]},{'name':a185_0x56bdc9(0x1d5),'meowKey':'all','type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1dd),'hidden':!![]},{'name':'enable-bff-save','meowKey':a185_0x56bdc9(0x1ba),'type':a185_0x56bdc9(0x20f),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1c3),'hidden':!![]},{'name':a185_0x56bdc9(0x203),'meowKey':'type','type':'string','description':a185_0x56bdc9(0x1aa),'hidden':!![]},{'name':a185_0x56bdc9(0x209),'meowKey':a185_0x56bdc9(0x209),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1e3),'hidden':!![]},{'name':a185_0x56bdc9(0x1ab),'meowKey':'sqlcode','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1cc),'hidden':!![]},{'name':'sql-name','meowKey':a185_0x56bdc9(0x20d),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x21c),'hidden':!![]},{'name':a185_0x56bdc9(0x1e7),'meowKey':a185_0x56bdc9(0x1e7),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':'dbId','type':'string','description':a185_0x56bdc9(0x1ea),'hidden':!![]},{'name':a185_0x56bdc9(0x1d3),'meowKey':a185_0x56bdc9(0x1d3),'type':a185_0x56bdc9(0x1f1),'description':'DB\x20ID','hidden':!![]},{'name':'description','meowKey':a185_0x56bdc9(0x1ac),'type':a185_0x56bdc9(0x1f1),'description':'Description','hidden':!![]},{'name':a185_0x56bdc9(0x224),'meowKey':'descriptionFile','type':'string','description':'Description\x20file','hidden':!![]},{'name':a185_0x56bdc9(0x20b),'meowKey':'page','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x218),'hidden':!![]},{'name':a185_0x56bdc9(0x1c5),'meowKey':a185_0x56bdc9(0x1c5),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1d0),'hidden':!![]},{'name':'keyword','meowKey':a185_0x56bdc9(0x220),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1dc),'hidden':!![]},{'name':a185_0x56bdc9(0x1a9),'meowKey':a185_0x56bdc9(0x1a9),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1b2),'hidden':!![]},{'name':'sql','meowKey':a185_0x56bdc9(0x1f8),'type':'string','description':a185_0x56bdc9(0x1c7),'hidden':!![]},{'name':a185_0x56bdc9(0x1f2),'meowKey':'schemas','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1e4),'hidden':!![]},{'name':a185_0x56bdc9(0x1d7),'meowKey':a185_0x56bdc9(0x1d7),'type':a185_0x56bdc9(0x1f1),'description':'Operation\x20type','hidden':!![]},{'name':a185_0x56bdc9(0x204),'meowKey':'target','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1f6),'hidden':!![]},{'name':'skip-imports','meowKey':a185_0x56bdc9(0x212),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1cd),'hidden':!![]},{'name':a185_0x56bdc9(0x214),'meowKey':a185_0x56bdc9(0x214),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1ed),'hidden':!![]},{'name':a185_0x56bdc9(0x205),'meowKey':a185_0x56bdc9(0x205),'type':'string','description':a185_0x56bdc9(0x1e1),'hidden':!![]},{'name':a185_0x56bdc9(0x1db),'meowKey':'tags','type':a185_0x56bdc9(0x1f1),'description':'Tags','hidden':!![]},{'name':a185_0x56bdc9(0x215),'meowKey':a185_0x56bdc9(0x215),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x217),'hidden':!![]},{'name':a185_0x56bdc9(0x213),'meowKey':a185_0x56bdc9(0x1b6),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1f5),'hidden':!![]},{'name':'reveal','meowKey':a185_0x56bdc9(0x1c4),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1cb),'hidden':!![]},{'name':a185_0x56bdc9(0x20e),'meowKey':'force','type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x219),'hidden':!![]},{'name':a185_0x56bdc9(0x20a),'meowKey':a185_0x56bdc9(0x20a),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x228),'hidden':!![]},{'name':a185_0x56bdc9(0x1fd),'meowKey':'remote','type':a185_0x56bdc9(0x20f),'description':'Use\x20remote','hidden':!![]},{'name':a185_0x56bdc9(0x227),'meowKey':a185_0x56bdc9(0x227),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x225),'hidden':!![]},{'name':'expected-count','meowKey':'expectedCount','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x222),'hidden':!![]},{'name':a185_0x56bdc9(0x1c2),'meowKey':a185_0x56bdc9(0x1c2),'type':a185_0x56bdc9(0x1f1),'description':'Menu\x20label','hidden':!![]},{'name':a185_0x56bdc9(0x20c),'meowKey':a185_0x56bdc9(0x1b4),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1b5),'hidden':!![]},{'name':a185_0x56bdc9(0x1e0),'meowKey':a185_0x56bdc9(0x1e0),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1ec),'hidden':!![]},{'name':a185_0x56bdc9(0x1e5),'meowKey':a185_0x56bdc9(0x21d),'type':a185_0x56bdc9(0x1f1),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':a185_0x56bdc9(0x1b0),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1da),'hidden':!![]},{'name':a185_0x56bdc9(0x1d4),'meowKey':a185_0x56bdc9(0x21e),'type':'string','description':a185_0x56bdc9(0x21f),'hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':a185_0x56bdc9(0x1f1),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a185_0x56bdc9(0x1d8),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1ca),'hidden':!![]},{'name':a185_0x56bdc9(0x1e6),'meowKey':'operationType','type':'string','description':a185_0x56bdc9(0x1b3),'hidden':!![]},{'name':a185_0x56bdc9(0x1f7),'meowKey':a185_0x56bdc9(0x1e9),'type':'string','description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x56bdc9(0x1fa),a185_0x56bdc9(0x1f4),a185_0x56bdc9(0x21b),a185_0x56bdc9(0x1f3),'jq',a185_0x56bdc9(0x1c6),a185_0x56bdc9(0x206),a185_0x56bdc9(0x1af),'ci']);export function buildMeowFlags(){const _0x2833e1=a185_0x56bdc9;return Object[_0x2833e1(0x1e2)](GLOBAL_FLAGS[_0x2833e1(0x1e8)](_0x454c4b=>[_0x454c4b[_0x2833e1(0x226)],{'type':_0x454c4b[_0x2833e1(0x203)]}]));}
|
|
1
|
+
function a185_0x3ad6(){const _0x5e3c91=['code','sort','sqlName','Name','pagesize','18uiTaoE','Use\x20project\x20config\x20scope','Force\x20non-interactive\x20mode\x20(CI)','menuIds','Reveal\x20sensitive\x20value','Environment','Target\x20path','6314910hZjooC','map','Apply\x20to\x20all','format','3332755EiutjN','Force\x20overwrite','DB\x20ID','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Read\x20value\x20from\x20environment\x20variable','SQL\x20name','dbid','string','sql','8075344WKAClp','clear','key','Output\x20format','description','Menu\x20label','global','fromEnv','non-interactive','sql-name','Override\x20appcode','title','sqlname','operation-type','meowKey','Alias\x20for\x20--non-interactive','schemas','<expr>','parentId','page','Enable\x20BFF\x20save','help','from-env','expected-count','Page\x20number','tags','442288RPrelE','Watch\x20mode','expectParentId','file','project','Type\x20filter','Dataset\x20code','Page\x20size','Select\x20app\x20profile\x20by\x20name','production\x20|\x20daily','Keyword\x20filter','Code\x20filter','json\x20|\x20pretty\x20|\x20compress','boolean','1490282cJNQCZ','expected-children-count','Skip\x20import\x20generation','Menu\x20sort\x20value','operationType','expectedCount','Expected\x20affected\x20count','Operation\x20type','Schemas','enable-bff-save','keyword','Skip\x20confirmation\x20for\x20high-risk\x20writes','force','Show\x20help','remote','target','rabetbase','Asynchronous\x20task\x20ID','<code>','Verbose\x20output','dryRun','SQL\x20code','parent-id','expect-parent-id','watch','@lovrabet/rabetbase-cli','value','expectPath','function-node','Expected\x20current\x20menu\x20path','1347857LgCDiQ','fromEntries','dbId','nonInteractive','yes','stdin','app','description-file','type','reveal','datasetcode','File\x20path','Title','Config\x20value','Expected\x20current\x20parent\x20menu\x20id','params','Tags','Output\x20path','JSON\x20params','Function\x20node','Clear','SQL\x20string','appcode','dry-run','confirm','output','label','skip-imports','Preview\x20operation\x20without\x20executing','sqlcode','verbose','env','name','60906gNFTCQ','Description\x20file','172wRqMGS','all','db-id'];a185_0x3ad6=function(){return _0x5e3c91;};return a185_0x3ad6();}const a185_0x4529ff=a185_0x3327;(function(_0x1a6dd7,_0x37597b){const _0x541947=a185_0x3327,_0x5939a2=_0x1a6dd7();while(!![]){try{const _0x1cbbd9=-parseInt(_0x541947(0xf7))/0x1+-parseInt(_0x541947(0x80))/0x2+-parseInt(_0x541947(0xbf))/0x3*(parseInt(_0x541947(0xc1))/0x4)+-parseInt(_0x541947(0xd4))/0x5+parseInt(_0x541947(0xd0))/0x6+parseInt(_0x541947(0x9e))/0x7+parseInt(_0x541947(0xdd))/0x8*(parseInt(_0x541947(0xc9))/0x9);if(_0x1cbbd9===_0x37597b)break;else _0x5939a2['push'](_0x5939a2['shift']());}catch(_0x5cf2ee){_0x5939a2['push'](_0x5939a2['shift']());}}}(a185_0x3ad6,0x8314a));export const CLI_BIN_NAME=a185_0x4529ff(0x90);function a185_0x3327(_0x546971,_0x3a444a){_0x546971=_0x546971-0x7c;const _0x3ad6fe=a185_0x3ad6();let _0x332798=_0x3ad6fe[_0x546971];return _0x332798;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a185_0x4529ff(0x99);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a185_0x4529ff(0xb4),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xe7),'hint':a185_0x4529ff(0x92)},{'name':a185_0x4529ff(0xa4),'meowKey':'app','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xff),'hint':'<name>'},{'name':a185_0x4529ff(0xbd),'meowKey':a185_0x4529ff(0xbd),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xce),'hint':a185_0x4529ff(0x100)},{'name':'format','meowKey':a185_0x4529ff(0xd3),'type':'string','description':a185_0x4529ff(0xe0),'hint':a185_0x4529ff(0x7e)},{'name':'jq','meowKey':'jq','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd7),'hint':a185_0x4529ff(0xee)},{'name':a185_0x4529ff(0xb5),'meowKey':a185_0x4529ff(0x94),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xba)},{'name':a185_0x4529ff(0xa2),'meowKey':a185_0x4529ff(0xa2),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x8b)},{'name':a185_0x4529ff(0xe5),'meowKey':a185_0x4529ff(0xa1),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xcb)},{'name':a185_0x4529ff(0xe3),'meowKey':a185_0x4529ff(0xe3),'type':a185_0x4529ff(0x7f),'description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a185_0x4529ff(0xfb),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xca)},{'name':'ci','meowKey':'ci','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xec),'hidden':!![]},{'name':a185_0x4529ff(0xf2),'meowKey':'help','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x8d)},{'name':a185_0x4529ff(0xbe),'meowKey':a185_0x4529ff(0xbe),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xc7),'hidden':!![]},{'name':a185_0x4529ff(0xe8),'meowKey':a185_0x4529ff(0xe8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xaa),'hidden':!![]},{'name':a185_0x4529ff(0xde),'meowKey':a185_0x4529ff(0xde),'type':'boolean','description':a185_0x4529ff(0xb2),'hidden':!![]},{'name':a185_0x4529ff(0x98),'meowKey':a185_0x4529ff(0x98),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xf8),'hidden':!![]},{'name':'output','meowKey':a185_0x4529ff(0xb7),'type':'string','description':a185_0x4529ff(0xaf),'hidden':!![]},{'name':a185_0x4529ff(0xad),'meowKey':a185_0x4529ff(0xad),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb0),'hidden':!![]},{'name':a185_0x4529ff(0xa8),'meowKey':'datasetcode','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfd),'hidden':!![]},{'name':'all','meowKey':a185_0x4529ff(0xc2),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xd2),'hidden':!![]},{'name':a185_0x4529ff(0x89),'meowKey':'enableBffSave','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xf1),'hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x4529ff(0xdb),'description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a185_0x4529ff(0xa6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfc),'hidden':!![]},{'name':a185_0x4529ff(0xfa),'meowKey':a185_0x4529ff(0xfa),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xa9),'hidden':!![]},{'name':a185_0x4529ff(0xbb),'meowKey':a185_0x4529ff(0xbb),'type':'string','description':a185_0x4529ff(0x95),'hidden':!![]},{'name':a185_0x4529ff(0xe6),'meowKey':a185_0x4529ff(0xc6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd9),'hidden':!![]},{'name':a185_0x4529ff(0xe9),'meowKey':a185_0x4529ff(0xe9),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd9),'hidden':!![]},{'name':a185_0x4529ff(0xc3),'meowKey':a185_0x4529ff(0xa0),'type':a185_0x4529ff(0xdb),'description':'DB\x20ID','hidden':!![]},{'name':a185_0x4529ff(0xda),'meowKey':a185_0x4529ff(0xda),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd6),'hidden':!![]},{'name':'description','meowKey':a185_0x4529ff(0xe1),'type':a185_0x4529ff(0xdb),'description':'Description','hidden':!![]},{'name':a185_0x4529ff(0xa5),'meowKey':'descriptionFile','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xc0),'hidden':!![]},{'name':'page','meowKey':a185_0x4529ff(0xf0),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xf5),'hidden':!![]},{'name':a185_0x4529ff(0xc8),'meowKey':a185_0x4529ff(0xc8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfe),'hidden':!![]},{'name':a185_0x4529ff(0x8a),'meowKey':a185_0x4529ff(0x8a),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x7c),'hidden':!![]},{'name':a185_0x4529ff(0xc4),'meowKey':'code','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x7d),'hidden':!![]},{'name':'sql','meowKey':a185_0x4529ff(0xdc),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb3),'hidden':!![]},{'name':a185_0x4529ff(0xed),'meowKey':a185_0x4529ff(0xed),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x88),'hidden':!![]},{'name':'operation','meowKey':'operation','type':'string','description':'Operation\x20type','hidden':!![]},{'name':a185_0x4529ff(0x8f),'meowKey':'target','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xcf),'hidden':!![]},{'name':a185_0x4529ff(0xb9),'meowKey':'skipImports','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x82),'hidden':!![]},{'name':'key','meowKey':a185_0x4529ff(0xdf),'type':a185_0x4529ff(0xdb),'description':'Config\x20key','hidden':!![]},{'name':a185_0x4529ff(0x9a),'meowKey':a185_0x4529ff(0x9a),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xab),'hidden':!![]},{'name':'tags','meowKey':a185_0x4529ff(0xf6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xae),'hidden':!![]},{'name':a185_0x4529ff(0xa3),'meowKey':a185_0x4529ff(0xa3),'type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a185_0x4529ff(0xf3),'meowKey':a185_0x4529ff(0xe4),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd8),'hidden':!![]},{'name':a185_0x4529ff(0xa7),'meowKey':a185_0x4529ff(0xa7),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xcd),'hidden':!![]},{'name':a185_0x4529ff(0x8c),'meowKey':a185_0x4529ff(0x8c),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xd5),'hidden':!![]},{'name':a185_0x4529ff(0xb6),'meowKey':'confirm','type':a185_0x4529ff(0x7f),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a185_0x4529ff(0x8e),'meowKey':a185_0x4529ff(0x8e),'type':a185_0x4529ff(0x7f),'description':'Use\x20remote','hidden':!![]},{'name':a185_0x4529ff(0xbc),'meowKey':a185_0x4529ff(0xbc),'type':'boolean','description':a185_0x4529ff(0x93),'hidden':!![]},{'name':a185_0x4529ff(0xf4),'meowKey':a185_0x4529ff(0x85),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x86),'hidden':!![]},{'name':'label','meowKey':a185_0x4529ff(0xb8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xe2),'hidden':!![]},{'name':a185_0x4529ff(0x96),'meowKey':a185_0x4529ff(0xef),'type':a185_0x4529ff(0xdb),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a185_0x4529ff(0xc5),'meowKey':a185_0x4529ff(0xc5),'type':'string','description':a185_0x4529ff(0x83),'hidden':!![]},{'name':a185_0x4529ff(0x97),'meowKey':a185_0x4529ff(0xf9),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xac),'hidden':!![]},{'name':'expect-path','meowKey':a185_0x4529ff(0x9b),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x9d),'hidden':!![]},{'name':a185_0x4529ff(0x81),'meowKey':'expectedChildrenCount','type':a185_0x4529ff(0xdb),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a185_0x4529ff(0xcc),'type':a185_0x4529ff(0xdb),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x91),'hidden':!![]},{'name':a185_0x4529ff(0xea),'meowKey':a185_0x4529ff(0x84),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x87),'hidden':!![]},{'name':a185_0x4529ff(0x9c),'meowKey':'functionNode','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb1),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x4529ff(0xb4),a185_0x4529ff(0xa4),a185_0x4529ff(0xbd),a185_0x4529ff(0xd3),'jq','dry-run','yes',a185_0x4529ff(0xe5),'ci']);export function buildMeowFlags(){const _0x5b6750=a185_0x4529ff;return Object[_0x5b6750(0x9f)](GLOBAL_FLAGS[_0x5b6750(0xd1)](_0x424313=>[_0x424313[_0x5b6750(0xeb)],{'type':_0x424313[_0x5b6750(0xa6)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a186_0x37c05a=a186_0x4f2a;(function(_0x1463a8,_0x24bfdc){const _0x496d2f=a186_0x4f2a,_0x3ec22e=_0x1463a8();while(!![]){try{const _0x57f157=parseInt(_0x496d2f(0x13d))/0x1*(-parseInt(_0x496d2f(0x137))/0x2)+-parseInt(_0x496d2f(0x136))/0x3*(-parseInt(_0x496d2f(0x13e))/0x4)+-parseInt(_0x496d2f(0x135))/0x5*(parseInt(_0x496d2f(0x13a))/0x6)+parseInt(_0x496d2f(0x13b))/0x7*(-parseInt(_0x496d2f(0x132))/0x8)+-parseInt(_0x496d2f(0x133))/0x9*(parseInt(_0x496d2f(0x13c))/0xa)+parseInt(_0x496d2f(0x139))/0xb*(-parseInt(_0x496d2f(0x140))/0xc)+parseInt(_0x496d2f(0x141))/0xd*(parseInt(_0x496d2f(0x13f))/0xe);if(_0x57f157===_0x24bfdc)break;else _0x3ec22e['push'](_0x3ec22e['shift']());}catch(_0x4ae05a){_0x3ec22e['push'](_0x3ec22e['shift']());}}}(a186_0x1e14,0xbebfc));function a186_0x1e14(){const _0x27699c=['80SzonNt','372ofFVwg','6TeisqM','compress','253AktxUQ','253398eLIKiG','107807nbTJch','30860JZyDsI','115113ueNcSs','2452IQFqUt','121912kRsOoT','388536XirLra','5356lgsHmG','136xCsqQm','2493LNrifU','en-US'];a186_0x1e14=function(){return _0x27699c;};return a186_0x1e14();}function a186_0x4f2a(_0xc5dcf2,_0x27d370){_0xc5dcf2=_0xc5dcf2-0x132;const _0x1e14eb=a186_0x1e14();let _0x4f2aaf=_0x1e14eb[_0xc5dcf2];return _0x4f2aaf;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a186_0x37c05a(0x138),'locale':a186_0x37c05a(0x134),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a186_0x37c05a(0x138);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a187_0x255935=a187_0x317b;(function(_0x590a2f,_0xc4f44a){const _0x49a0b5=a187_0x317b,_0x3ade09=_0x590a2f();while(!![]){try{const _0x42a9c3=-parseInt(_0x49a0b5(0x178))/0x1*(parseInt(_0x49a0b5(0x16c))/0x2)+-parseInt(_0x49a0b5(0x17c))/0x3+-parseInt(_0x49a0b5(0x175))/0x4+parseInt(_0x49a0b5(0x181))/0x5+parseInt(_0x49a0b5(0x17d))/0x6*(parseInt(_0x49a0b5(0x16e))/0x7)+parseInt(_0x49a0b5(0x16f))/0x8+-parseInt(_0x49a0b5(0x179))/0x9;if(_0x42a9c3===_0xc4f44a)break;else _0x3ade09['push'](_0x3ade09['shift']());}catch(_0x30004d){_0x3ade09['push'](_0x3ade09['shift']());}}}(a187_0x276f,0x4cf83));import{getEnv,isProduction}from'../constant/env.js';function a187_0x317b(_0x43d5f3,_0x3ee912){_0x43d5f3=_0x43d5f3-0x16c;const _0x276f76=a187_0x276f();let _0x317bc1=_0x276f76[_0x43d5f3];return _0x317bc1;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1f9c70){const _0x351bb5=a187_0x317b;customApiDomain=_0x1f9c70?.[_0x351bb5(0x176)],customUserDomain=_0x1f9c70?.[_0x351bb5(0x17f)],customRuntimeDomain=_0x1f9c70?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a187_0x255935(0x180):a187_0x255935(0x174));function a187_0x276f(){const _0x4afe1b=['userDomain','https://user.lovrabet.com','2912515hiZgoF','42526aASqKj','/web-app/app/','2969666vZFdIG','4507584VWRqjr','trim','https://daily-api.lovrabet.com','https://daily.lovrabet.com','https://runtime.lovrabet.com','https://user-daily.lovrabet.com','1848188bxfdYK','apiDomain','https://app.lovrabet.com','19Jhikqp','920547SQhGcs','https://api.lovrabet.com','https://daily-runtime.lovrabet.com','859785ZipAwG','6jcaPOT','/app/'];a187_0x276f=function(){return _0x4afe1b;};return a187_0x276f();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a187_0x255935(0x17a):a187_0x255935(0x171));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a187_0x255935(0x173):a187_0x255935(0x17b));export const getAppDomain=()=>isProduction(getEnv())?a187_0x255935(0x177):a187_0x255935(0x172);export const getAppBaseUrl=_0x3001f4=>{const _0x8c0ff6=a187_0x255935,_0x933960=encodeURIComponent(_0x3001f4[_0x8c0ff6(0x170)]());return isProduction(getEnv())?getAppDomain()+_0x8c0ff6(0x17e)+_0x933960:getAppDomain()+_0x8c0ff6(0x16d)+_0x933960;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a188_0x210ef5=a188_0x5130;(function(_0x107ad5,_0x332b98){const _0x4dbb46=a188_0x5130,_0x3ed43a=_0x107ad5();while(!![]){try{const _0x143a44=-parseInt(_0x4dbb46(0x109))/0x1*(parseInt(_0x4dbb46(0x107))/0x2)+parseInt(_0x4dbb46(0xfd))/0x3+-parseInt(_0x4dbb46(0xfe))/0x4+-parseInt(_0x4dbb46(0x106))/0x5+parseInt(_0x4dbb46(0x102))/0x6+parseInt(_0x4dbb46(0x100))/0x7+parseInt(_0x4dbb46(0xff))/0x8*(-parseInt(_0x4dbb46(0x103))/0x9);if(_0x143a44===_0x332b98)break;else _0x3ed43a['push'](_0x3ed43a['shift']());}catch(_0x330638){_0x3ed43a['push'](_0x3ed43a['shift']());}}}(a188_0x5cf5,0xbf81d));export const RABETBASE_ENV_VALUES=[a188_0x210ef5(0x104),a188_0x210ef5(0x108)];function a188_0x5cf5(){const _0x3896d1=['7293062RatHTB','online','1869882UOyebl','405wQAGFa','production','dev','5780055qwmspc','134354ZAWPEo','daily','3AFgOuz','4215120veHJDk','836492tMfUwb','72440nNMcmA'];a188_0x5cf5=function(){return _0x3896d1;};return a188_0x5cf5();}export function normalizeEnv(_0x3aec29){const _0x54c5ff=a188_0x210ef5;return _0x3aec29===_0x54c5ff(0x101)?_0x54c5ff(0x104):_0x3aec29;}export function isProduction(_0x4d9af7){const _0x39fa8f=a188_0x210ef5;return normalizeEnv(_0x4d9af7)===_0x39fa8f(0x104);}export function isDaily(_0xe60fac){const _0x564ec6=a188_0x210ef5;return normalizeEnv(_0xe60fac)===_0x564ec6(0x108);}export function isDev(_0x1ed2e4){const _0x403dd9=a188_0x210ef5,_0x53a224=normalizeEnv(_0x1ed2e4);return _0x53a224==='development'||_0x53a224===_0x403dd9(0x105);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a188_0x210ef5(0x104));function a188_0x5130(_0x2fb6de,_0x3f46bf){_0x2fb6de=_0x2fb6de-0xfd;const _0x5cf57b=a188_0x5cf5();let _0x5130ef=_0x5cf57b[_0x2fb6de];return _0x5130ef;}export function getEnv(){return env;}export function initEnv(_0x2eb1ae){env=normalizeEnv(_0x2eb1ae);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a189_0x5b55(_0x2a675f,_0x28c4aa){_0x2a675f=_0x2a675f-0x118;const _0x75180d=a189_0x7518();let _0x5b55f7=_0x75180d[_0x2a675f];return _0x5b55f7;}const a189_0x20ec3e=a189_0x5b55;function a189_0x7518(){const _0x119b2a=['pretty','5042387VBcdKK','2241106FQDIun','15228560jyzRoI','1954110OcZkyu','755642OlDEIf','3546708PcCUCg','825366qcFRyC','compress','12AYFVWR'];a189_0x7518=function(){return _0x119b2a;};return a189_0x7518();}(function(_0x329a37,_0x391b2a){const _0x4d5df4=a189_0x5b55,_0x45330d=_0x329a37();while(!![]){try{const _0x135e59=parseInt(_0x4d5df4(0x11c))/0x1+-parseInt(_0x4d5df4(0x119))/0x2+parseInt(_0x4d5df4(0x11d))/0x3+-parseInt(_0x4d5df4(0x120))/0x4*(-parseInt(_0x4d5df4(0x11b))/0x5)+-parseInt(_0x4d5df4(0x11e))/0x6+parseInt(_0x4d5df4(0x118))/0x7+-parseInt(_0x4d5df4(0x11a))/0x8;if(_0x135e59===_0x391b2a)break;else _0x45330d['push'](_0x45330d['shift']());}catch(_0x4dcc70){_0x45330d['push'](_0x45330d['shift']());}}}(a189_0x7518,0xa3549));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a189_0x20ec3e(0x121),a189_0x20ec3e(0x11f)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a190_0x19ed(_0x377628,_0x4a8f12){_0x377628=_0x377628-0x196;const _0x2e93cb=a190_0x2e93();let _0x19edae=_0x2e93cb[_0x377628];return _0x19edae;}const a190_0x2e11f8=a190_0x19ed;function a190_0x2e93(){const _0x1f2ec5=['2537220JzfIXH','./src/api','1010432lGgwfv','3262362blBNMR','765079DvZhGp','4086504QrWPlV','54812DvYQzR','187974ntjmGt','138HENxJL'];a190_0x2e93=function(){return _0x1f2ec5;};return a190_0x2e93();}(function(_0x177f03,_0x2c2665){const _0x49708a=a190_0x19ed,_0x36e51b=_0x177f03();while(!![]){try{const _0x5a58c3=-parseInt(_0x49708a(0x19b))/0x1+-parseInt(_0x49708a(0x196))/0x2+parseInt(_0x49708a(0x19c))/0x3*(parseInt(_0x49708a(0x19a))/0x4)+parseInt(_0x49708a(0x19d))/0x5+parseInt(_0x49708a(0x197))/0x6+-parseInt(_0x49708a(0x198))/0x7+-parseInt(_0x49708a(0x199))/0x8;if(_0x5a58c3===_0x2c2665)break;else _0x36e51b['push'](_0x36e51b['shift']());}catch(_0x37c76d){_0x36e51b['push'](_0x36e51b['shift']());}}}(a190_0x2e93,0x59e51));export const DEFAULT_API_DIR=a190_0x2e11f8(0x19e);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a191_0xb405(){const _0x25488=['1118464JmVNJC','13989QAbpAl','324pMRUpz','6020124eGMfno','9zDrktC','947384CTmDxL','4793838giwHsm','3483425ClZuZN','646632OyRGlk','high-risk-write'];a191_0xb405=function(){return _0x25488;};return a191_0xb405();}const a191_0x3879ff=a191_0x2f30;(function(_0x3b5c6b,_0x5510ec){const _0x38ee32=a191_0x2f30,_0x1efe4a=_0x3b5c6b();while(!![]){try{const _0x21c0b2=-parseInt(_0x38ee32(0x79))/0x1+parseInt(_0x38ee32(0x74))/0x2+parseInt(_0x38ee32(0x7a))/0x3*(parseInt(_0x38ee32(0x71))/0x4)+-parseInt(_0x38ee32(0x76))/0x5+parseInt(_0x38ee32(0x72))/0x6+parseInt(_0x38ee32(0x75))/0x7+parseInt(_0x38ee32(0x77))/0x8*(parseInt(_0x38ee32(0x73))/0x9);if(_0x21c0b2===_0x5510ec)break;else _0x1efe4a['push'](_0x1efe4a['shift']());}catch(_0x27ed70){_0x1efe4a['push'](_0x1efe4a['shift']());}}}(a191_0xb405,0xc498f));function a191_0x2f30(_0x20541b,_0x415dcd){_0x20541b=_0x20541b-0x71;const _0xb4052a=a191_0xb405();let _0x2f3003=_0xb4052a[_0x20541b];return _0x2f3003;}export const RISK_LEVEL_VALUES=['read','write',a191_0x3879ff(0x78)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c3385,_0x2b6943){const _0x4b99d5=a192_0x20ea,_0x3b668f=_0x3c3385();while(!![]){try{const _0x200661=-parseInt(_0x4b99d5(0xec))/0x1+-parseInt(_0x4b99d5(0x109))/0x2+-parseInt(_0x4b99d5(0x115))/0x3*(parseInt(_0x4b99d5(0x10b))/0x4)+parseInt(_0x4b99d5(0x10e))/0x5*(-parseInt(_0x4b99d5(0xfc))/0x6)+-parseInt(_0x4b99d5(0xe9))/0x7*(-parseInt(_0x4b99d5(0xf7))/0x8)+-parseInt(_0x4b99d5(0xfe))/0x9+parseInt(_0x4b99d5(0xf4))/0xa*(parseInt(_0x4b99d5(0xf1))/0xb);if(_0x200661===_0x2b6943)break;else _0x3b668f['push'](_0x3b668f['shift']());}catch(_0x247338){_0x3b668f['push'](_0x3b668f['shift']());}}}(a192_0x2b11,0xa3046));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a192_0x20ea(_0x40e2de,_0x445e8d){_0x40e2de=_0x40e2de-0xe9;const _0x2b11dd=a192_0x2b11();let _0x20ea38=_0x2b11dd[_0x40e2de];return _0x20ea38;}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x5ac1be){const _0x4746b8=a192_0x20ea;return typeof _0x5ac1be==='string'&&_0x5ac1be[_0x4746b8(0xed)]()?_0x5ac1be['trim']():undefined;}function appProfiles(_0x403133){const _0x324b6a=a192_0x20ea;return _0x403133[_0x324b6a(0x112)]&&typeof _0x403133[_0x324b6a(0x112)]==='object'?_0x403133[_0x324b6a(0x112)]:{};}function a192_0x2b11(){const _0xbc79e0=['APP','read','40LxMbYM','VERBOSE','riskLevel','ENV','defaultApp','5779086SXpBNz','apiDir','7796691xmxxDD','maxRisk','string','accessKey','app','MAX_RISK','pageSize','keys','object','cookie','production','1171924lTyvvN','entries','39876bsOKjK','write','RISK_LEVEL','5EpADEa','globalConfig','locale','inherit','apps','true','appcode','6sMmpHj','1003170IrIZdQ','env','find','74196JeWDIO','trim','format','length','COOKIE','410124MJDArB','projectConfig','daily','660PsdBli'];a192_0x2b11=function(){return _0xbc79e0;};return a192_0x2b11();}function resolveDefaultAppName(_0x6d2f54){const _0x8f1b51=a192_0x20ea,_0x1a07b8=stringConfigValue(_0x6d2f54['defaultApp']);if(_0x1a07b8)return _0x1a07b8;return Object[_0x8f1b51(0x105)](appProfiles(_0x6d2f54))[0x0];}function resolveTopLevelAppCode(_0x3306ee){const _0xd07dba=a192_0x20ea;return stringConfigValue(_0x3306ee[_0xd07dba(0x114)])||stringConfigValue(_0x3306ee[_0xd07dba(0x102)]);}export function resolveAppConfig({raw:_0x34a1bc,flags:_0x30a5c2,layers:_0x17ae67,readEnv:_0x200442}){const _0x5e9c72=a192_0x20ea,_0x542737=_0x17ae67?.[_0x5e9c72(0xf2)]??{},_0x114110=_0x17ae67?.[_0x5e9c72(0x10f)]??{},_0x55a55e=Object['keys'](_0x542737)[_0x5e9c72(0xef)]>0x0,_0x27fe48=!_0x55a55e||_0x542737[_0x5e9c72(0x111)]===!![],_0x318457=_0x55a55e?resolveDefaultAppName(_0x542737):undefined,_0x5d98ca=_0x27fe48?resolveDefaultAppName(_0x114110):undefined,_0x146cd2=stringConfigValue(_0x30a5c2[_0x5e9c72(0x102)]),_0xce1ae1=_0x200442(_0x5e9c72(0xf5)),_0x180987={};if(_0x34a1bc[_0x5e9c72(0x112)]&&typeof _0x34a1bc[_0x5e9c72(0x112)]===_0x5e9c72(0x106))for(const [_0x44810b,_0x97b7cc]of Object['entries'](_0x34a1bc[_0x5e9c72(0x112)])){_0x97b7cc&&typeof _0x97b7cc===_0x5e9c72(0x106)&&_0x97b7cc[_0x5e9c72(0x114)]&&(_0x180987[_0x44810b]=_0x97b7cc);}const _0x60c686=_0x34a1bc[_0x5e9c72(0xfb)]||undefined,_0x31a786=Object['keys'](_0x180987)[_0x5e9c72(0xef)]>0x0,_0x27946e=_0x146cd2||_0x318457||_0xce1ae1||_0x5d98ca||_0x60c686||undefined,_0x2ed143=stringConfigValue(_0x30a5c2[_0x5e9c72(0x114)]),_0x3b0ef0=_0x2ed143?Object[_0x5e9c72(0x10a)](_0x180987)[_0x5e9c72(0xeb)](([,_0x55be23])=>_0x55be23?.[_0x5e9c72(0x114)]===_0x2ed143):undefined,_0x5e524c=_0x3b0ef0?.[0x0],_0x3b775a=_0x3b0ef0?.[0x1],_0x34c55a=_0x2ed143?_0x5e524c:_0x27946e;let _0x2a5727=_0x34c55a&&_0x180987[_0x34c55a]?_0x180987[_0x34c55a]:undefined;_0x2ed143&&_0x3b775a&&(_0x2a5727=_0x3b775a);const _0x5729f9=_0x2ed143?_0x3b775a??_0x2a5727:_0x2a5727,_0x442773=!_0x146cd2&&!_0x318457&&_0xce1ae1&&_0x34c55a===_0xce1ae1,_0x520de2=_0x146cd2||(_0x442773?_0xce1ae1:undefined)||(_0x2ed143?_0x5e524c:undefined),_0x4df1de=_0x5729f9?.[_0x5e9c72(0x114)],_0x301b69=_0x55a55e?resolveTopLevelAppCode(_0x542737):undefined,_0x21b9ae=_0x27fe48?resolveTopLevelAppCode(_0x114110):undefined,_0x1e0b38=_0x146cd2||_0x318457?_0x4df1de:undefined,_0x4b0491=!_0x146cd2&&!_0x318457?_0x4df1de:undefined,_0x13853a=_0x2ed143||_0x1e0b38||_0x301b69||_0x4b0491||_0x21b9ae||undefined,_0x466c2f=_0x55a55e?stringConfigValue(_0x542737[_0x5e9c72(0xea)]):undefined,_0x3660b0=_0x27fe48?stringConfigValue(_0x114110[_0x5e9c72(0xea)]):undefined,_0x2fd6c9=_0x30a5c2[_0x5e9c72(0xea)]||_0x5729f9?.[_0x5e9c72(0xea)]||_0x466c2f||_0x200442(_0x5e9c72(0xfa))||_0x3660b0||_0x34a1bc[_0x5e9c72(0xea)]||DEFAULT_CONFIG_VALUES[_0x5e9c72(0xea)],_0x1b8e38=_0x5729f9?.[_0x5e9c72(0x110)]||_0x34a1bc[_0x5e9c72(0x110)]||DEFAULT_CONFIG_VALUES['locale'],_0x4e5c89=_0x200442(_0x5e9c72(0xf0))||_0x5729f9?.[_0x5e9c72(0x107)]||_0x34a1bc[_0x5e9c72(0x107)]||undefined,_0x40cc24=_0x200442('ACCESS_KEY')||_0x5729f9?.[_0x5e9c72(0x101)]||_0x34a1bc[_0x5e9c72(0x101)]||undefined,_0x2acf7a=_0x30a5c2['format']||_0x200442('FORMAT')||_0x5729f9?.[_0x5e9c72(0xee)]||_0x34a1bc[_0x5e9c72(0xee)],_0x1ff2ef=normalizeLegacyOutputFormat(_0x2acf7a),_0x48d433=_0x200442('PAGE_SIZE')||_0x5729f9?.[_0x5e9c72(0x104)]||_0x34a1bc['pageSize'],_0x4b9e34=_0x48d433?Number(_0x48d433)||undefined:undefined,_0x5798a7=_0x200442(_0x5e9c72(0x10d))||_0x200442(_0x5e9c72(0x103))||_0x5729f9?.['riskLevel']||_0x34a1bc[_0x5e9c72(0xf9)]||_0x34a1bc[_0x5e9c72(0xff)],_0x14ea7d=_0x5798a7===_0x5e9c72(0xf6)||_0x5798a7===_0x5e9c72(0x10c)?_0x5798a7:DEFAULT_CONFIG_VALUES[_0x5e9c72(0xf9)],_0x3ed65e=_0x200442(_0x5e9c72(0xf8)),_0x1fde1c=_0x3ed65e==='1'||_0x3ed65e===_0x5e9c72(0x113),_0x145008=_0x5729f9?.[_0x5e9c72(0xfd)]||_0x34a1bc[_0x5e9c72(0xfd)]||DEFAULT_CONFIG_VALUES[_0x5e9c72(0xfd)],_0x3270e0=isDaily(normalizeEnv(String(_0x2fd6c9)))?_0x5e9c72(0xf3):_0x5e9c72(0x108);return{'appCode':typeof _0x13853a===_0x5e9c72(0x100)&&_0x13853a[_0x5e9c72(0xed)]()?_0x13853a[_0x5e9c72(0xed)]():undefined,'env':_0x3270e0,'locale':_0x1b8e38,'cookie':_0x4e5c89,'accessKey':_0x40cc24,'format':_0x1ff2ef,'pageSize':_0x4b9e34,'riskLevel':_0x14ea7d,'verbose':_0x1fde1c,'apiDir':_0x145008,'apps':_0x180987,'defaultApp':_0x60c686,'currentApp':_0x31a786?_0x34c55a:undefined,'explicitAppName':_0x520de2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3bb183,_0x4a64c9){const _0x11e00a=a193_0x2cba,_0x3d3322=_0x3bb183();while(!![]){try{const _0x283fdf=parseInt(_0x11e00a(0xaa))/0x1+-parseInt(_0x11e00a(0xa2))/0x2+-parseInt(_0x11e00a(0xab))/0x3+parseInt(_0x11e00a(0xa6))/0x4+parseInt(_0x11e00a(0xa5))/0x5+parseInt(_0x11e00a(0xa4))/0x6*(parseInt(_0x11e00a(0xa9))/0x7)+-parseInt(_0x11e00a(0xa3))/0x8;if(_0x283fdf===_0x4a64c9)break;else _0x3d3322['push'](_0x3d3322['shift']());}catch(_0x39d6a4){_0x3d3322['push'](_0x3d3322['shift']());}}}(a193_0x56cc,0xc0392));import{getIsSessionValid}from'../auth/is-session-valid.js';function a193_0x2cba(_0x328891,_0x5da646){_0x328891=_0x328891-0xa2;const _0x56cce9=a193_0x56cc();let _0x2cbae3=_0x56cce9[_0x328891];return _0x2cbae3;}function a193_0x56cc(){const _0x502139=['2528352xOzsMz','100602TiKrHn','6392090cjGoNW','2558692ioXkOc','cookie','authRequired','28SRRsja','1409291oNVfMa','2984376bqCvYf','../auth/get-cookie.js','2592536lpXCZB'];a193_0x56cc=function(){return _0x502139;};return a193_0x56cc();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x5c7d44){const _0x21e089=a193_0x2cba,{getCookie:_0xa77a6d}=await import(_0x21e089(0xac)),_0x5b958b=_0x5c7d44[_0x21e089(0xa7)]||_0xa77a6d(),_0x53c621=_0x5b958b?await getIsSessionValid():![];return{'cookie':_0x5b958b,'isLoggedIn':_0x53c621,async 'getOrLogin'(){const _0x59f051=_0x21e089;if(_0x5b958b&&_0x53c621)return _0x5b958b;throw CliErrors[_0x59f051(0xa8)]();}};}
|